adapted to Kick Assembler, some documentation update

This commit is contained in:
FeralChild64 committed 2019-09-07 12:35:21 +02:00
1 parent ae23dbae7b
commit de27124b4f
198 files changed
+4181 -3976

No files matched your search

+13 -15
View File
@@ -1,19 +1,19 @@
;; IMPORTANT:
;; These routines lengths cannot be changed without changing
;; the aliases for peek_under_roms, poke_under_roms etc
;; in ,aliases.s.
;; Thus those addresses are expressed using formulae.
// IMPORTANT:
// These routines lengths cannot be changed without changing
// the aliases for peek_under_roms, poke_under_roms etc
// in ,aliases.s.
// Thus those addresses are expressed using formulae.
install_ram_routines:
;; Copy routines into place
ldx #ram_routines_len-1
*
// Copy routines into place
ldx #ram_routines_end-ram_routines_start-1
!:
lda ram_routines_start,x
sta tiny_nmi_handler,x
dex
bpl -
bpl !-
;; Point NMI handler to tiny_nmi_handler
// Point NMI handler to tiny_nmi_handler
lda #<tiny_nmi_handler
sta $FFFE
lda #>tiny_nmi_handler
@@ -28,7 +28,7 @@ tiny_nmi_handler_routine:
rti
peek_under_roms_routine:
php
; Offset of arg of lda ($00),y
// Offset of arg of lda ($00),y
stx peek_under_roms+pa-peek_under_roms_routine+1
jsr memmap_allram
pa: lda ($00),y
@@ -38,7 +38,7 @@ pa: lda ($00),y
poke_under_roms_routine:
php
; Offset of arg of lda ($00),y
// Offset of arg of lda ($00),y
stx poke_under_roms+pb-poke_under_roms_routine+1
jsr memmap_allram
pb: sta ($00),y
@@ -60,7 +60,5 @@ memmap_allram_routine:
sta $01
pla
rts
ram_routines_end:
.alias ram_routines_len ram_routines_end-ram_routines_start