repo_id
stringlengths
5
115
size
int64
590
5.01M
file_path
stringlengths
4
212
content
stringlengths
590
5.01M
6043/milk_lang
5,043
examples/prime-valid.s
.section .data .section .text .globl _start _start: mov %rsp, %rbp sub $56, %rsp sub $128, %rsp mov %rbp, %rsi addq $56, %rsi movq $0, %rax movq $0, %rdi movq $64, %rdx syscall mov %rax, %rcx subq $1, %rcx mov %rsi, %r9 addq %rcx, %r9 subq $1, %r9 movq $1, %rbx xor %r8, %...
6043/milk_lang
7,409
examples/rps-valid.s
.section .data str0: .string "Hello. Welcome to Rock, Paper, Scissors!" str1: .string " - 1 for Rock" str2: .string " - 2 for Paper" str3: .string " - 3 for Scissors" str4: .string " - 4 to exit" str5: .string "The computer chooses Rock" str6: .string "The computer chooses Paper" str7: .string "...
6043/milk_lang
4,794
examples/fib.s
.section .data .section .text .globl _start _start: mov %rsp, %rbp sub $32, %rsp sub $128, %rsp mov %rbp, %rsi addq $32, %rsi movq $0, %rax movq $0, %rdi movq $64, %rdx syscall mov %rax, %rcx subq $1, %rcx mov %rsi, %r9 addq %rcx, %r9 subq $1, %r9 movq $1, %rbx xor %r8, %...
6043/milk_lang
1,182
assembly/double_to_ascii.s
# assume HEX representation is in %xmm0. # also assume that the char ptr at the LAST char is in %rcx. .double_to_ascii: xor %r12, %r12 # save whole number part in r9. cvttsd2si %xmm0, %r9 test %r9, %r9 jns .convert_positive_dta: movq $1, %r12 movabs $0x8000000000000000, %rax movq %rax, %...
6502-retro/6502-retro-os
1,195
bios/acia.s
; vim: ft=asm_ca65 .include "io.inc" .include "bios.inc" .autoimport .globalzp ptr1 .export acia_init, acia_getc, acia_getc_nw, acia_putc ; vim: set ft=asm_ca65 sw=4 ts=4 et: ACIA_PARITY_DISABLE = %00000000 ACIA_ECHO_DISABLE = %00000000 ACIA_TX_INT_DISABLE_RTS_LOW = %00001000 ACIA_RX_INT_ENABLE ...
6502-retro/6502-retro-os
4,267
bios/bios.s
; vim: ft=asm_ca65 .include "io.inc" .include "bios.inc" .autoimport .globalzp ptr1, bdma_ptr .export cboot .export _vdp_sync, _vdp_status, _notectr .export error_code, rega, regx, regy .export user_nmi_vector, user_irq_vector .if DEBUG=1 .export bios_printlba .endif .zeropage ptr1: .word 0 bdma_ptr: .word...
6502-retro/6502-retro-os
1,594
bios/sn76489.s
; vim: ft=asm_ca65 ts=4 sw=4 : ; Library functions for basic control of the SN76489 attached to the VIA .include "io.inc" .export sn_start, sn_stop, sn_silence, sn_beep, sn_play_note, sn_send .export sn_irq_handler .import _notectr FIRST = %10000000 SECOND = %00000000 CHAN_1 = %00000000 CHAN_2 = %00100000 CHAN_3 ...
6502-retro/6502-retro-os
6,868
bios/sdcard.s
; vim: ft=asm_ca65 ;----------------------------------------------------------------------------- ; SDCARD Routines adapted from: ; https://github.com/X16Community/x16-rom/blob/master/fat32/sdcard.s ; Copyright (C) 2020 Frank van den Hoef ; ; SPI Routines from: ; https://github.com/Steckschwein/code...
6502-retro/6502-retro-os
20,378
sfcp/sfcp.s
; vim: ft=asm_ca65 ts=4 sw=4 et .include "sfos.inc" .include "fcb.inc" .include "errors.inc" .include "bios.inc" .export main, prompt .autoimport .globalzp ptr1 .zeropage debug_ptr: .word 0 sfcpcmd: .word 0 .code ; main user interface - First show a prompt. main: lda #<str_banner ldx #>str_banner js...
6502-retro/6502-retro-os
25,158
sfos/sfos.s
; vim: ft=asm_ca65 ts=4 sw=4 .include "fcb.inc" .include "io.inc" .include "errors.inc" .include "bios.inc" .autoimport .export sfos_buf, sfos_s_reset, dispatch .zeropage cmd: .word 0 param: .word 0 user_dma: .word 0 zptemp0: .word 0 zptemp1: .word 0 zptemp2: .word 0 zpbufptr: .word 0 .cod...
6502-retro/6502-retro-os
1,459
apps/shadowrom/main.s
; vim: ft=asm_ca65 ts=4 sw=4 et .include "io.inc" .macro pp addr lda #<addr ldx #>addr jsr printl .endmacro ROM_BASE = $e000 HIGHRAM = $c000 .zeropage src: .word 0 dst: .word 0 ptr: .word 0 .code main: sei pp msg1 lda #<ROM_BASE sta src + 0 lda #>ROM_BASE sta src + 1 ld...
6502-retro/6502-retro-os
9,289
apps/uart/main.s
; vim: ft=asm_ca65 sw=4 ts=4 et .include "fcb.inc" .include "io.inc" acia_tx_irq = 1 ; using R6551 UART. Set to 0 if using WDC65C51 __ACIA_START__ = acia_data ACIA_DATA = __ACIA_START__ + $00 ACIA_STATUS = __ACIA_START__ + $01 ACIA_COMMAND = __ACIA_START__ + $02 ACIA_CONTROL = __ACIA_START__ + $03 ACIA_STOP_...
6502-retro/6502-retro-os
4,934
apps/vgm/main.s
; vim: ft=asm_ca65 sw=4 ts=4 et .include "fcb.inc" .include "io.inc" .zeropage vgmptr: .byte 0 vgmptrh: .byte 0 vgmwaitl: .byte 0 vgmwaith: .byte 0 rambank: .byte 0 page: .byte 0 .code main: sei jsr bios_sn_start lda #<str_message ldx #>str_message jsr c_printstr lda #<str_loading ld...
6502-retro/6502-retro-os
3,802
apps/dump/dump.s
; vim: ft=asm_ca65 sw=4 ts=4 et .include "fcb.inc" .zeropage ptr: .word 0 addr: .word 0 line: .word 0 fileaddr: .word 0 .code main: ; Print hello, world and exit lda #<message ldx #>message jsr c_printstr ; to dump a file contents, we want to: ; - open the file ; - while read sequ...
6502-retro/6502-retro-os
7,603
apps/conway/font.s
.byte $00,$00,$00,$00,$00,$00,$00,$00 ; /* - $00 - ALWAYS BLANK */ .byte $18,$3C,$3C,$7E,$7E,$7E,$3C,$3C ; /* - $01 - snake head up */ .byte $3C,$3C,$7E,$7E,$7E,$3C,$3C,$18 ; /* - $02 - snake head down */ .byte $00,$1C,$7F,$FF,$FF,$7F,$1C,$00 ; /* - $03 - snake head left */ .byte $00,$38,$FE,$FF,$FF,$FE,$38,$0...
6502-retro/6502-retro-os
8,457
apps/conway/vdp.s
; vim: set ft=asm_ca65 ts=4 sw=4 : ;extern void vdp_init(); ;extern void vdp_init_g2(); ;extern void __fastcall__ vdp_set_write_address(unsigned int addr); ;extern void __fastcall__ vdp_set_read_address(unsigned int addr); ;extern void vdp_wait(); ;extern void vdp_flush(); ;extern void __fastcall__ vdp_write_to_screen...
6502-retro/6502-retro-os
4,847
apps/ehbasic/6502-retro-basic.s
.include "sfos.inc" .include "bios.inc" ; vim: ft=asm_ca65 ts=4 sw=4 : ; contains additional commands for EH Basic basptr = $FA .code ; BYE - Quits EHBASIC ; CLS - CLEAR Screen by issuing Ansi escape sequence "ESC [J2" ; LOAD "FILENAME.BAS" - Loads a FILENAME ; SAVE "FILENAME.BAS" - Saves current program into FILENAME...
6502-retro/6502-retro-os
355,908
apps/ehbasic/basic.s
; vim: ft=asm_ca65 ; Enhanced BASIC to assemble under 6502 simulator, $ver 2.22p5 ; $E7E1 $E7CF $E7C6 $E7D3 $E7D1 $E7D5 $E7CF $E81E $E825 ; 2.00 new revision numbers start here ; 2.01 fixed LCASE$() and UCASE$() ; 2.02 new get value routine done ; 2.03 changed RND() to galoise method ; 2.04 f...
6502-retro/6502-retro-os
2,899
apps/ehbasic/min_mon.s
; vim: ft=asm_ca65 ; ; minimal monitor for EhBASIC and 6502 simulator V1.05 ; tabs converted to space, tabwidth=6 ; To run EhBASIC on the simulator load and assemble [F7] this file, start the simulator ; running [F6] then start the code with the RESET [CTRL][SHIFT]R. Just selecting RUN ; will do nothing, you'll still ...
6502-retro/6502-retro-os
6,880
apps/mon/main.s
; vim: ft=asm_ca65 sw=4 ts=4 et .include "fcb.inc" .include "io.inc" IN = wozmon_buf acia_putc = bios_conout acia_getc_nw = bios_const .bss wozmon_buf: .res $7F .zeropage rambank: .res 1 rombank: .res 1 XAML: .res 1 XAMH: .res 1 STL: .res 1 STH: .res ...
6502-retro/6502-retro-os
1,244
apps/lib/read.s
; ; int __fastcall__ read (int fd, void* buf, unsigned count); ; .import _sfos_c_read .import popax, popptr1 .importzp ptr1, ptr2, ptr3 .export _read .proc _read sta ptr3 stx ptr3+1 ; Count in ptr3 inx stx ptr2+1 ...
6502-retro/6502-retro-os
1,256
apps/lib/write.s
; ; int __fastcall__ write (int fd, const void* buf, int count); ; .import _sfos_c_write .import popax, popptr1 .importzp ptr1, ptr2, ptr3 .export _write .proc _write sta ptr3 stx ptr3+1 ; Count in ptr3 inx stx ptr2+1 ...
6502-retro/6502-retro-os
1,150
apps/lib/sfos_wrappers.s
; vim: ft=asm_ca65 ts=4 sw=4 .include "bios.inc" .export _sfos_error_code := bios_error_code .export _sfos_cmdline := $300 .export _sfos_cmdoffset := $3C0 .export _sfos_buf := $400 .export _sfos_buf_end := $600 .export _sfos_entry := sfos_entry .export _bios_cboot := bios_c...
6502-retro/6502-retro-os
4,039
apps/format/format.s
; vim: ft=asm_ca65 sw=4 ts=4 et .include "fcb.inc" .zeropage bufptr: .word 0 .code main: lda #<str_message ldx #>str_message jsr c_printstr jsr c_read and #$DF sta temp sec sbc #'A'-1 sta selected_drive jsr newline lda #<str_chose ldx #>str_chose jsr c_printstr ...
6502-retro/6502-retro-os
13,330
apps/xm/xm.s
; vim: ft=asm_ca65 sw=4 ts=4 et .include "fcb.inc" SOH = $01 ; start block EOT = $04 ; end of text marker ACK = $06 ; good block acknowledged NAK = $15 ; bad block acknowledged CAN = $18 ; cancel (not standard, not supported) CR = $0d ...
6502-retro/6502-retro-os
2,584
apps/copy/copy.s
; vim: ft=asm_ca65 sw=4 ts=4 et .include "fcb.inc" .zeropage .code main: lda #<str_message ldx #>str_message jsr c_printstr jsr set_user_drive ; gather arguments ; FCB2 contains source ; CMDOFFSET points to file name of destination. Parse it. ; clear out FCB ldx #0 lda #0 ...
6502-retro/6502-retro-os
1,491
apps/msbasic/defines.s
.if .def(cbmbasic1) CBM1 := 1 .include "defines_cbm1.s" .elseif .def(osi) OSI := 1 .include "defines_osi.s" .elseif .def(applesoft) APPLE := 1 .include "defines_apple.s" .elseif .def(kb9) KIM := 1 .include "defines_kim.s" .elseif .def(cbmbasic2) CBM2 := 1 .include "defines_cbm2.s" .elseif .def(kbdbasic) KBD := 1 .inclu...
6502-retro/6502-retro-os
9,493
apps/msbasic/array.s
.segment "CODE" ; ---------------------------------------------------------------------------- ; COMPUTE ADDRESS OF FIRST VALUE IN ARRAY ; ARYPNT = (LOWTR) + #DIMS*2 + 5 ; ---------------------------------------------------------------------------- GETARY: lda EOLPNTR asl a adc #$05...
6502-retro/6502-retro-os
6,913
apps/msbasic/flow1.s
.segment "CODE" ; ---------------------------------------------------------------------------- ; "FOR" STATEMENT ; ; FOR PUSHES 18 BYTES ON THE STACK: ; 2 -- TXTPTR ; 2 -- LINE NUMBER ; 5 -- INITIAL (CURRENT) FOR VARIABLE VALUE ; 1 -- STEP SIGN ; 5 -- STEP VALUE ; 2 -- ADDRESS OF FOR VARIABLE IN VARTAB ; 1 -- FOR TOK...
6502-retro/6502-retro-os
19,266
apps/msbasic/string.s
.segment "CODE" ; ---------------------------------------------------------------------------- ; "STR$" FUNCTION ; ---------------------------------------------------------------------------- STR: jsr CHKNUM ldy #$00 jsr FOUT1 pla pla LD353: lda #<(STACK2-...
6502-retro/6502-retro-os
11,296
apps/msbasic/init.s
.segment "INIT" .ifdef KBD FNDLIN2: php jmp FNDLIN .endif ; ---------------------------------------------------------------------------- PR_WRITTEN_BY: .ifndef KBD .ifndef CONFIG_CBM_ALL .ifndef AIM65 .ifndef SYM1 lda #<QT_WRITTEN_BY ldy #>QT_WRITTEN_BY ...
6502-retro/6502-retro-os
3,519
apps/msbasic/memory.s
; generic stack and memory management code ; this code is identical across all versions of ; BASIC .segment "CODE" ; ---------------------------------------------------------------------------- ; CALLED BY "NEXT" AND "FOR" TO SCAN THROUGH ; THE STACK FOR A FRAME WITH THE SAME VARIABLE. ; ; (FORPNT) = ADDRESS OF VARIA...
6502-retro/6502-retro-os
1,061
apps/msbasic/defines_cbm2.s
; configuration CONFIG_2A := 1 CONFIG_CBM_ALL := 1 CONFIG_DATAFLG := 1 CONFIG_EASTER_EGG := 1 CONFIG_FILE := 1; support PRINT#, INPUT#, GET#, CMD CONFIG_NO_CR := 1; terminal doesn't need explicit CRs on line ends CONFIG_NO_LINE_EDITING := 1; support for "@", "_", BEL etc. CONFIG_NO_READ_Y_IS_ZERO_HACK := 1 CONFIG_PEE...
6502-retro/6502-retro-os
5,011
apps/msbasic/misc1.s
.segment "CODE" ; ---------------------------------------------------------------------------- ; CONVERT LINE NUMBER ; ---------------------------------------------------------------------------- LINGET: ldx #$00 stx LINNUM stx LINNUM+1 L28BE: bcs L28B7 sbc #...
6502-retro/6502-retro-os
45,699
apps/msbasic/float.s
.segment "CODE" TEMP1X = TEMP1+(5-BYTES_FP) ; ---------------------------------------------------------------------------- ; ADD 0.5 TO FAC ; ---------------------------------------------------------------------------- FADDH: lda #<CON_HALF ldy #>CON_HALF jmp FADD ; --------------...
6502-retro/6502-retro-os
1,229
apps/msbasic/sym1_loadsave.s
.segment "CODE" SAVE: beq L2739 sta P1L jsr CHRGET bne NULL-1 lda TXTTAB ldy TXTTAB+1 sta P2L sty P2H lda VARTAB ldy VARTAB+1 sta P3L sty P3H ldy #$80 j...
6502-retro/6502-retro-os
5,461
apps/msbasic/var.s
.segment "CODE" ; ---------------------------------------------------------------------------- ; "DIM" STATEMENT ; ---------------------------------------------------------------------------- NXDIM: jsr CHKCOM DIM: tax jsr PTRGET2 jsr CHRGOT bne NXDIM rts...
6502-retro/6502-retro-os
5,231
apps/msbasic/flow2.s
.segment "CODE" ; ---------------------------------------------------------------------------- ; "RUN" COMMAND ; ---------------------------------------------------------------------------- RUN: bne L27CF jmp SETPTRS L27CF: jsr CLEARC jmp L27E9 ; ------------------------...
6502-retro/6502-retro-os
2,627
apps/msbasic/apple_extra.s
.segment "EXTRA" .byte 0,0,0 L2900: jsr LFD6A stx $33 ldx #$00 L2907: lda $0200,x and #$7F cmp #$0D bne L2912 lda #$00 L2912: sta $0200,x inx bne L2907 ldx $33 r...
6502-retro/6502-retro-os
2,876
apps/msbasic/inline.s
.segment "CODE" .ifndef CONFIG_NO_INPUTBUFFER_ZP L2420: .ifdef OSI jsr OUTDO .endif dex .ifdef AIM65 bmi L2423 jsr PSLS jmp INLIN2 LB35F: jsr OUTDO .else bpl INLIN2 .endif L2423: .ifdef OSI jsr OUTDO .endif ...
6502-retro/6502-retro-os
1,476
apps/msbasic/error.s
init_error_table .ifdef CONFIG_SMALL_ERROR define_error ERR_NOFOR, "NF" define_error ERR_SYNTAX, "SN" define_error ERR_NOGOSUB, "RG" define_error ERR_NODATA, "OD" define_error ERR_ILLQTY, "FC" define_error ERR_OVERFLOW, "OV" define_error ERR_MEMFULL, "OM" define_error ERR_UNDEFSTAT, "US" define_error ERR_BADSUBS, "BS"...
6502-retro/6502-retro-os
3,760
apps/msbasic/misc2.s
.segment "CODE" ; ---------------------------------------------------------------------------- ; "FRE" FUNCTION ; ; COLLECTS GARBAGE AND RETURNS # BYTES OF MEMORY LEFT ; ---------------------------------------------------------------------------- FRE: lda VALTYP beq L3188 jsr FREFAC...
6502-retro/6502-retro-os
9,952
apps/msbasic/input.s
.segment "CODE" ; ---------------------------------------------------------------------------- ; INPUT CONVERSION ERROR: ILLEGAL CHARACTER ; IN NUMERIC FIELD. MUST DISTINGUISH ; BETWEEN INPUT, READ, AND GET ; ---------------------------------------------------------------------------- INPUTERR: lda INPUT...
6502-retro/6502-retro-os
1,707
apps/msbasic/macros.s
; htasc - set the hi bit on the last byte of a string for termination ; (by Tom Greene) .macro htasc str .repeat .strlen(str)-1,I .byte .strat(str,I) .endrep .byte .strat(str,.strlen(str)-1) | $80 .endmacro ; For every token, a byte gets put into segment "DUMMY". ; This way, we count up with every token. The DUMM...
6502-retro/6502-retro-os
2,098
apps/msbasic/zeropage.s
.feature org_per_seg .zeropage .org ZP_START1 GORESTART: .res 3 GOSTROUT: .res 3 GOAYINT: .res 2 GOGIVEAYF: .res 2 .org ZP_START2 Z15: .res 1 .ifndef POSX; allow override POSX: .endif .res 1 .ifndef Z17; allow override Z17: .endif .res 1 .ifndef Z18; allow override Z18: .endif .res 1 LINNUM: .ifndef TXPSV; ...
6502-retro/6502-retro-os
1,370
apps/msbasic/kim_loadsave.s
.segment "CODE" SAVE: tsx stx INPUTFLG lda #$37 sta $F2 lda #$FE sta $17F9 lda TXTTAB ldy TXTTAB+1 sta $17F5 sty $17F6 lda VARTAB ldy VARTAB+1 sta $17F7 sty ...
6502-retro/6502-retro-os
17,381
apps/msbasic/eval.s
.segment "CODE" ; ---------------------------------------------------------------------------- ; "NEXT" STATEMENT ; ---------------------------------------------------------------------------- NEXT: bne NEXT1 ldy #$00 beq NEXT2 NEXT1: jsr PTRGET NEXT2: sta FO...
6502-retro/6502-retro-os
1,032
apps/msbasic/defines_cbm1.s
; configuration ; oldest known version, no CONFIG_n CONFIG_CBM_ALL := 1 CONFIG_CBM1_PATCHES := 1 ; ** don't turn off! ** CONFIG_DATAFLG := 1 CONFIG_FILE := 1; support PRINT#, INPUT#, GET#, CMD CONFIG_NO_CR := 1; terminal doesn't need explicit CRs on line ends CONFIG_NO_LINE_EDITING := 1; support for "@", "_", BEL etc...
6502-retro/6502-retro-os
5,524
apps/msbasic/trig.s
.segment "CODE" .ifndef SYM1 SIN_COS_TAN_ATN: ; ---------------------------------------------------------------------------- ; "COS" FUNCTION ; ---------------------------------------------------------------------------- COS: lda #<CON_PI_HALF ldy #>CON_PI_HALF jsr FADD ; ---------...
6502-retro/6502-retro-os
1,462
apps/msbasic/misc3.s
; KBD specific patches .segment "CODE" .ifdef KBD VARTAB_MINUS_2_TO_AY: lda VARTAB sec sbc #$02 ldy VARTAB+1 bcs LF42C dey LF42C: rts ; ---------------------------------------------------------------------------- GET_UPPER: lda INPUT...
6502-retro/6502-retro-os
17,355
apps/msbasic/program.s
; error ; line input, line editing ; tokenize ; detokenize ; BASIC program memory management ; MICROTAN has some nonstandard extension to LIST here .segment "CODE" MEMERR: ldx #ERR_MEMFULL ; ---------------------------------------------------------------------------- ; HANDLE AN ERROR ; ; (X)=OFFSET IN ...
6502-retro/6502-retro-os
2,777
apps/msbasic/poke.s
.segment "CODE" .ifndef CONFIG_NO_POKE ; ---------------------------------------------------------------------------- ; EVALUATE "EXP1,EXP2" ; ; CONVERT EXP1 TO 16-BIT NUMBER IN LINNUM ; CONVERT EXP2 TO 8-BIT NUMBER IN X-REG ; ---------------------------------------------------------------------------- GTNUM: ...
6502-retro/6502-retro-os
3,751
apps/msbasic/token.s
init_token_tables keyword_rts "END", END keyword_rts "FOR", FOR keyword_rts "NEXT", NEXT keyword_rts "DATA", DATA .ifdef CONFIG_FILE keyword_rts "INPUT#", INPUTH .endif keyword_rts "INPUT", INPUT keyword_rts "DIM", DIM keyword_rts "READ", READ .ifdef APPLE keyword_rts "PLT", PLT .else keyword_rts...
6502-retro/6502-retro-os
16,180
apps/msbasic/microtan_extra.s
.byte 0,0,0,0,0,0,0,0,0 LE210: jmp LE34A LE213: jmp LE34A LE216: jmp LE33C LE219: jmp LE252 LE21C: jmp LE6AD LE21F: jmp LE6B9 LE222: pla tay sta $5E pla sta $5F pha tya pha ...
6502-retro/6502-retro-os
7,565
apps/msbasic/print.s
.segment "CODE" .ifdef AIM65 PRINT: lda PRIFLG sta ZBE jsr L297E LB8B1: lda ZBE sta PRIFLG rts .endif PRSTRING: jsr STRPRT L297E: jsr CHRGOT ; ---------------------------------------------------------------------------- ; "PR...
6502-retro/6502-retro-os
2,939
apps/msbasic/rnd.s
.segment "CODE" ; ---------------------------------------------------------------------------- ; "RND" FUNCTION ; ---------------------------------------------------------------------------- .ifdef KBD RND: ldx #$10 jsr SIGN beq LFC26 bmi LFC10 lda RNDSEED ...
6502-retro/6502-retro-os
6,515
apps/msbasic/kbd_extra.s
.segment "EXTRA" stx SHIFTSIGNEXT stx $0800 inx stx Z17 stx Z18 stx TXTTAB lda #$08 sta TXTTAB+1 jsr SCRTCH sta STACK+255 LFD81: jsr PRIMM .byte $1B,$06,$01,$0C .byte "INTELLIVISIO...
6502-retro/6502-retro-os
1,305
apps/msbasic/microtan_loadsave.s
.segment "CODE" SAVE: ldy #$00 beq LC74D LC74B: ldy #$01 LC74D: ldx #$4C LC74F: lda $13,x pha dex bpl LC74F ldx #$03 LC757: lda TXTTAB,x sta GOSTROUT+2,x dex bpl LC757 ...
74hc595/LPC1114-Synthesizer
4,892
kernel.S
@ vim:noet:sw=8:ts=8:ai:syn=armasm @ LPC1114 Synthesizer @ Matt Sarnoff (msarnoff.org) @ November 24, 2013 @ @ Sound generation kernel. @ The SysTick handler is executed from RAM for super speed! @ This function makes heavy (ab)use of self-modifying code; @ many of the instructions are changed by the C code to vary pa...
74hc595/Amethyst
34,933
assets/amscii_font_8x8.S
.section .progmem.assets .balign 256 .global amscii_font_8x8 .type amscii_font_8x8, @object amscii_font_8x8: .byte 0b00000000 .byte 0b00000000 .byte 0b00000000 .byte 0b00000000 .byte 0b11110000 .byte 0b11110000 .byte 0b11110000 .byte 0b11110000 .byte 0b00000000 .byte 0b00000000 .byte 0b00000000 .byte 0b00000000 .byte 0...
74hc595/Amethyst
165,591
assets/bitspreadtable.S
.section .progmem.assets .balign 256 .global bitspreadtable .type bitspreadtable, @object bitspreadtable: .byte 0b00000000 .byte 0b00000000 .byte 0b00000000 .byte 0b00000000 .byte 0b00000000 .byte 0b00000000 .byte 0b00000000 .byte 0b00000000 .byte 0b00000000 .byte 0b00000000 .byte 0b00000000 .byte 0b00000000 .byte 0b00...
74hc595/Amethyst
3,566
assets/crumbquadtable.S
; "crumb" is an obscure term for a 2-bit quantity .section .progmem.assets .balign 256 .global crumbquadtable .type crumbquadtable, @object crumbquadtable: .rept 64 .byte 0b00000000, 0b01010101, 0b10101010, 0b11111111 .endr .global crumbmasktable .type crumbmasktable, @object crumbmasktable: .rept 64 .byte 0b11000000,...
74hc595/Amethyst
3,050
assets/hsvtable.S
.section .progmem.assets .balign 256 .global hsvtable .type hsvtable, @object hsvtable: .byte 240 .byte 133 .byte 133 .byte 133 .byte 133 .byte 21 .byte 21 .byte 21 .byte 21 .byte 112 .byte 112 .byte 112 .byte 69 .byte 69 .byte 69 .byte 69 .byte 148 .byte 148 .byte 133 .byte 133 ...
74hc595/Amethyst
69,740
assets/test_tileset_8x8.S
.text .balign 256 .global test_tileset_8x8 .type test_tileset_8x8, @object test_tileset_8x8: .byte 0b11111111 .byte 0b00000000 .byte 0b11111111 .byte 0b00000000 .byte 0b11111111 .byte 0b00000000 .byte 0b11001100 .byte 0b00000000 .byte 0b00110011 .byte 0b00000000 .byte 0b00000000 .byte 0b00000000 .byte 0b00000000 .byte ...
74hc595/Amethyst
37,241
assets/cosine.S
.section .progmem.assets .balign 256 .global cosinetable .global cosinetable_lsb .global cosinetable_msb .type cosinetable, @object .type cosinetable_lsb, @object .type cosinetable_msb, @object cosinetable: cosinetable_lsb: .byte lo8( 32767) ; i= 0 theta=0.00000 cos(theta)*32767=32767.000 .byte lo8( 32757) ; i...
74hc595/Amethyst
47,511
system/videomodes.S
#include <avr/io.h> #include "videodefs.h" #include "asm_macros.inc" ; -------------------- Video linehandler calling convention -------------------- ; r2 (isr_tmp) can be used freely but must be cleared before returning. ; ; r31:r30 (Z) and GPIOR0 can be used freely and does not have to be restored. ; ; GPIOR1 and GP...
74hc595/Amethyst
2,898
system/minio_decimal.S
; Minimal functions for printing 8- and 16-bit integers as signed or ; unsigned decimal. .text .global mio_d8 mio_d8: tst r24 brpl mio_u8 push r28 mov r28, r24 neg r28 ldi r24, '-' lds ZL, mio_putc lds ZH, mio_putc+1 ...
74hc595/Amethyst
1,970
system/app_launch.S
; This function does not return, so it doesn't care about clobbering the ; caller-saved registers. ; Much of the implementation is adapted from libgcc's __do_clear_bss and ; __do_copy_data. #include <avr/io.h> .text .global app_launch app_launch: cli ; interrupts must be reenabled by the app ...
74hc595/Amethyst
14,584
system/isrs.S
#include <avr/io.h> #include "videodefs.h" #include "asm_macros.inc" .global keymatrixrows .global burst .global raster_int_scanline .global raster_int .comm keymatrixrows, 8 .comm keymatrixhandler_lo, 1 .comm keymatrixcol, 1 .comm raster_int_scanline, 1 .comm raster_int, 2 ; In order to support receiving data from t...
74hc595/Amethyst
14,967
apps/forth/forth_words.S
#include "forth_opcodes.h" #include "forth_macros.inc" #include "forth_defs.h" .macro dictheader, name .byte . - lastentry .set lastentry, .-1 .byte (9f-8f) 8: .ascii "\name" 9: .endm ; "Normal" word. ; Interpret: perform execution semantics ; Compile: compile execution semantics .macro dictentry_colon, name dicthe...
74hc595/Amethyst
104,801
apps/forth/forth_opcodes_2.S
#include "forth_opcodes.h" #include "forth_macros.inc" #include "forth_defs.h" #include "spi.h" ; ?DUP ( n -- 0 | n n ) duplicate TOS if non-zero ext_opcode_qdup: tstw TOS breq 1f pushd 1: rnext ; -ROT ( n1 n2 n3 -- n3 n1 n2 ) push top element down to 3rd position ext_opcode_nrot: ...
74hc595/Amethyst
122,846
apps/forth/forth_opcodes.S
; Ah yes, there's nothing like a 5000 line .S file. ; The location of each routine relative to the locations of the dispatch tables ; are important. A dispatch table must be able to reach every routine via RJMP. ; The linker can't be trusted to do this correctly. And it also likes to add ; *lots* of padding, for some r...
74hc595/Amethyst
1,284
apps/forth/forth_opcodes_3.S
#include "forth_opcodes.h" #include "forth_macros.inc" #include "forth_defs.h" ; Debug dispatch table aligned to a 256-word (512-byte) boundary. ; (All opcodes point to a single debugger entry point) .align 9 .global vm_debug_dispatch_table vm_debug_dispatch_table: create_dispatch_table .debug_opcode_, 255 ....
74hc595/Amethyst
9,522
apps/forth/forth_outer_interpreter.S
#include "forth_opcodes.h" #include "forth_macros.inc" #include "forth_defs.h" ; The REPL, historically known as "QUIT." ; This is the main function and does not return. ; Hence, it does not need to save call-saved registers. .global forth_outer_interpreter .global forth_quit forth_outer_interpreter: ; make sure const...
74hc595/Amethyst
6,062
apps/forth/forth_mem_layout.S
; Most Forths use a single dictionary that mixes headers (names, link pointers, ; flags, etc.) with contents (code, buffers, etc.) ; ; This implementation separates them. The "code space" is for compiled code, ; buffers, variables, etc. It contains no metadata. The "name space" contains ; word information like names, f...
760ceb3b9c0ba4872cadf3ce35a7a494/fediiverse
1,472
patch/src/certs.s
// patch type to 1 (sdmc) instead of 5 (content:) .org load_cave_pem + 0x14 mov r2, #0x1 // set certificate location .org browser_cave_pem_string .ascii "3ds/fediiverse.pem", 0 // include the rootca .org der_cert_address der_cert_start: .incbin "../cert/ca_cert.der" der_cert_end: //sizeof max 26 instruction...
769484623/MahonyAHRSWithMPU9250
11,029
CORE/startup_stm32f0xx.s
;******************** (C) COPYRIGHT 2014 STMicroelectronics ******************** ;* File Name : startup_stm32f0xx.s ;* Author : MCD Application Team ;* Version : V1.5.0 ;* Date : 05-December-2014 ;* Description : STM32F051 devices vector table for MDK-ARM toolchain. ...
769484623/MahonyAHRSWithMPU9250
10,608
RTE/Device/STM32F030C8/startup_stm32f030x8.s
;******************** (C) COPYRIGHT 2016 STMicroelectronics ******************** ;* File Name : startup_stm32f030x8.s ;* Author : MCD Application Team ;* Version : V2.2.3 ;* Date : 29-January-2016 ;* Description : STM32F030x8 devices vector table for MDK-ARM toolchai...
7etsuo/Learn-Solana-BPF-Assembly
14,702
examples/token.sbpf/TOKEN.S
# TOKEN.SBPF version 0.99 # # Simple token transfer program # # # #::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::# #:::::::::::::::::::::::::::...
8bitbubsy/pt23f
502,568
PT2.3F.s
; ProTracker v2.3F source code ; ============================ ; 9th of October, 2025 ; ; (tab width = 8 spaces) ; ; If you find any bugs, please email me at the email/Discord found on ; the website 16-bits.org. ; ; Original PT2.3D by Peter "CRAYON" Hanning, Detron and Lars "ZAP" Hamre ; ; PT2.3D raw disassemble ...
8bitbubsy/pt23f
31,918
replayer/PT2.3F_replay_cia.s
;******************************************************* ;* ----- ProTracker V2.3F Replay Routine (CIA) ----- * ;******************************************************* ; ; This replayer has been slightly optimized over the PT2.3D replayer, ; but it's still far from fully optimized. It has also been rewritten to ; be...
8bitbubsy/pt23f
28,617
replayer/PT2.3F_replay_vblank.s
;******************************************************* ;* ---- ProTracker V2.3F Replay Routine (VBlank) ---- * ;******************************************************* ; ; This is the vblank version of the PT2.3F replayer. If you don't know ; the difference between CIA and vblank, you probably want to use the ; CIA ...
8devices/carambola2
1,089
package/boot/uboot-ar71xx/files/board/zyxel/nbg460n/lowlevel_init.S
/* * (C) Copyright 2010 * Michael Kurz <michi.kurz@googlemail.com>. * * See file CREDITS for list of people who contributed to this * project. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as * published by the Free Software Foun...
8devices/openwrt-8devices
1,089
package/boot/uboot-ar71xx/files/board/zyxel/nbg460n/lowlevel_init.S
/* * (C) Copyright 2010 * Michael Kurz <michi.kurz@googlemail.com>. * * See file CREDITS for list of people who contributed to this * project. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as * published by the Free Software Foun...
903257958/stm32_oop_driver
24,722
stm32f411ce_drivers/stm32f411ce_uart/firmware/cmsis/device/startup_stm32f411xe.s
;******************************************************************************* ;* File Name : startup_stm32f411xe.s ;* Author : MCD Application Team ;* Description : STM32F411xExx devices vector table for MDK-ARM toolchain. ;* This module performs: ;* ...
903257958/stm32_oop_driver
29,173
stm32f405rg_drivers/stm32f405rg_uart/firmware/cmsis/device/startup_stm32f40_41xxx.s
;******************** (C) COPYRIGHT 2016 STMicroelectronics ******************** ;* File Name : startup_stm32f40_41xxx.s ;* Author : MCD Application Team ;* @version : V1.8.0 ;* @date : 09-November-2016 ;* Description : STM32F40xxx/41xxx devices vector table for MDK-AR...
903257958/stm32_oop_driver
29,173
stm32f405rg_drivers/stm32f405rg_i2c_soft_mpu6050/firmware/cmsis/device/startup_stm32f40_41xxx.s
;******************** (C) COPYRIGHT 2016 STMicroelectronics ******************** ;* File Name : startup_stm32f40_41xxx.s ;* Author : MCD Application Team ;* @version : V1.8.0 ;* @date : 09-November-2016 ;* Description : STM32F40xxx/41xxx devices vector table for MDK-AR...
903257958/stm32_oop_driver
29,173
stm32f405rg_drivers/stm32f405rg_spi_hard_dma_st7789/fireware/cmsis/device/startup_stm32f40_41xxx.s
;******************** (C) COPYRIGHT 2016 STMicroelectronics ******************** ;* File Name : startup_stm32f40_41xxx.s ;* Author : MCD Application Team ;* @version : V1.8.0 ;* @date : 09-November-2016 ;* Description : STM32F40xxx/41xxx devices vector table for MDK-AR...
8MiYile/LSPatch-OP
1,077
core/external/dobby/source/TrampolineBridge/ClosureTrampolineBridge/arm/dummy/closure-trampoline-template-arm.S
// .section __TEXT,__text,regular,pure_instructions #if defined(ENABLE_CLOSURE_BRIDGE_TEMPLATE) #if defined(__WIN32__) || defined(__APPLE__) #define cdecl(s) _##s #else #define cdecl(s) s #endif .align 4 #if !defined(ENABLE_CLOSURE_TRAMPOLINE_CARRY_OBJECT_PTR) // closure trampoline carray the object pointer, and f...
8MiYile/LSPatch-OP
1,230
core/external/dobby/source/TrampolineBridge/ClosureTrampolineBridge/arm64/dummy/closure-trampoline-template-arm64.S
// .section __TEXT,__text,regular,pure_instructions #if defined(ENABLE_CLOSURE_BRIDGE_TEMPLATE) #if defined(__WIN32__) || defined(__APPLE__) #define cdecl(s) _##s #else #define cdecl(s) s #endif .align 4 #if !defined(ENABLE_CLOSURE_TRAMPOLINE_CARRY_OBJECT_PTR) // closure trampoline carray the object pointer, and f...
903257958/stm32_oop_driver
29,173
stm32f405rg_drivers/stm32f405rg_i2c_soft_eeprom/firmware/cmsis/device/startup_stm32f40_41xxx.s
;******************** (C) COPYRIGHT 2016 STMicroelectronics ******************** ;* File Name : startup_stm32f40_41xxx.s ;* Author : MCD Application Team ;* @version : V1.8.0 ;* @date : 09-November-2016 ;* Description : STM32F40xxx/41xxx devices vector table for MDK-AR...
903257958/stm32_oop_driver
29,173
stm32f405rg_drivers/stm32f405rg_vibration_motor/firmware/cmsis/device/startup_stm32f40_41xxx.s
;******************** (C) COPYRIGHT 2016 STMicroelectronics ******************** ;* File Name : startup_stm32f40_41xxx.s ;* Author : MCD Application Team ;* @version : V1.8.0 ;* @date : 09-November-2016 ;* Description : STM32F40xxx/41xxx devices vector table for MDK-AR...
903257958/stm32_oop_driver
29,173
stm32f405rg_drivers/stm32f405rg_spi_hard_w25qx/firmware/cmsis/device/startup_stm32f40_41xxx.s
;******************** (C) COPYRIGHT 2016 STMicroelectronics ******************** ;* File Name : startup_stm32f40_41xxx.s ;* Author : MCD Application Team ;* @version : V1.8.0 ;* @date : 09-November-2016 ;* Description : STM32F40xxx/41xxx devices vector table for MDK-AR...
903257958/stm32_oop_driver
29,173
stm32f405rg_drivers/stm32f405rg_i2c_soft_aht21/firmware/cmsis/device/startup_stm32f40_41xxx.s
;******************** (C) COPYRIGHT 2016 STMicroelectronics ******************** ;* File Name : startup_stm32f40_41xxx.s ;* Author : MCD Application Team ;* @version : V1.8.0 ;* @date : 09-November-2016 ;* Description : STM32F40xxx/41xxx devices vector table for MDK-AR...
903257958/stm32_oop_driver
29,173
stm32f405rg_drivers/stm32f405rg_esp8266/firmware/cmsis/device/startup_stm32f40_41xxx.s
;******************** (C) COPYRIGHT 2016 STMicroelectronics ******************** ;* File Name : startup_stm32f40_41xxx.s ;* Author : MCD Application Team ;* @version : V1.8.0 ;* @date : 09-November-2016 ;* Description : STM32F40xxx/41xxx devices vector table for MDK-AR...
903257958/stm32_oop_driver
29,173
stm32f405rg_drivers/stm32f405rg_key_fifo/firmware/cmsis/device/startup_stm32f40_41xxx.s
;******************** (C) COPYRIGHT 2016 STMicroelectronics ******************** ;* File Name : startup_stm32f40_41xxx.s ;* Author : MCD Application Team ;* @version : V1.8.0 ;* @date : 09-November-2016 ;* Description : STM32F40xxx/41xxx devices vector table for MDK-AR...
903257958/stm32_oop_driver
29,173
stm32f405rg_drivers/stm32f405rg_i2c_soft_max30102/firmware/cmsis/device/startup_stm32f40_41xxx.s
;******************** (C) COPYRIGHT 2016 STMicroelectronics ******************** ;* File Name : startup_stm32f40_41xxx.s ;* Author : MCD Application Team ;* @version : V1.8.0 ;* @date : 09-November-2016 ;* Description : STM32F40xxx/41xxx devices vector table for MDK-AR...
903257958/stm32_oop_driver
12,458
stm32f103ve_drivers/stm32f103ve_uart/firmware/cmsis/device/startup_stm32f10x_md.s
;******************** (C) COPYRIGHT 2011 STMicroelectronics ******************** ;* File Name : startup_stm32f10x_md.s ;* Author : MCD Application Team ;* Version : V3.5.0 ;* Date : 11-March-2011 ;* Description : STM32F10x Medium Density Devices vector table for MDK-...
903257958/stm32_oop_driver
12,079
stm32f103ve_drivers/stm32f103ve_uart/firmware/cmsis/device/startup_stm32f10x_ld.s
;******************** (C) COPYRIGHT 2011 STMicroelectronics ******************** ;* File Name : startup_stm32f10x_ld.s ;* Author : MCD Application Team ;* Version : V3.5.0 ;* Date : 11-March-2011 ;* Description : STM32F10x Low Density Devices vector table for MDK-ARM...
903257958/stm32_oop_driver
13,758
stm32f103ve_drivers/stm32f103ve_uart/firmware/cmsis/device/startup_stm32f10x_md_vl.s
;******************** (C) COPYRIGHT 2011 STMicroelectronics ******************** ;* File Name : startup_stm32f10x_md_vl.s ;* Author : MCD Application Team ;* Version : V3.5.0 ;* Date : 11-March-2011 ;* Description : STM32F10x Medium Density Value Line Devices vector ...