Updated script_library_demo.c65 so it does at least something
This commit is contained in:
parent
ea45c9421e
commit
4a7a766aa8
1 changed files with 5 additions and 5 deletions
|
|
@ -54,10 +54,12 @@ ENDSCRIPT
|
||||||
|
|
||||||
// Macro with label parameter (passed as string)
|
// Macro with label parameter (passed as string)
|
||||||
SCRIPT MACRO set_irq(handler)
|
SCRIPT MACRO set_irq(handler)
|
||||||
|
print(" sei")
|
||||||
print(" lda #<%s" % handler)
|
print(" lda #<%s" % handler)
|
||||||
print(" sta $fffe")
|
print(" sta $0314")
|
||||||
print(" lda #>%s" % handler)
|
print(" lda #>%s" % handler)
|
||||||
print(" sta $ffff")
|
print(" sta $0315")
|
||||||
|
print(" cli")
|
||||||
ENDSCRIPT
|
ENDSCRIPT
|
||||||
|
|
||||||
//-----------------------------------------------------------
|
//-----------------------------------------------------------
|
||||||
|
|
@ -96,8 +98,6 @@ LABEL start
|
||||||
|
|
||||||
LABEL my_handler
|
LABEL my_handler
|
||||||
ASM
|
ASM
|
||||||
pha
|
|
||||||
inc $d020
|
inc $d020
|
||||||
pla
|
jmp $ea31
|
||||||
rti
|
|
||||||
ENDASM
|
ENDASM
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue