mirror of
https://github.com/irmen/prog8.git
synced 2024-11-26 11:49:22 +00:00
29 lines
766 B
Plaintext
29 lines
766 B
Plaintext
output prg,basic
|
|
|
|
;reg_preserve off ; @todo global option off/on default off? NOT AN OPTION -> change the default to OFF
|
|
|
|
import "c64lib"
|
|
|
|
~ main {
|
|
start
|
|
A = $11
|
|
X = $22
|
|
Y = $33
|
|
|
|
c64scr.clear_screen !(81, 5, $04) ; @todo new syntax to specify registers to save (! = all three A,X,Y)
|
|
;c64scr.clear_screen !A (81, 5, $04) ; @todo new syntax to specify registers to save (only A)
|
|
;c64scr.clear_screen !AX (81, 5, $04)
|
|
;c64scr.clear_screen !AXY (81, 5, $04)
|
|
|
|
c64scr.print_byte_hex(1,A)
|
|
c64.CHROUT(' ')
|
|
c64scr.print_byte_hex(1,X)
|
|
c64.CHROUT(' ')
|
|
c64scr.print_byte_hex(1,Y)
|
|
c64scr.print_word_decimal(1222)
|
|
c64.CHROUT('\n')
|
|
|
|
return
|
|
|
|
}
|