mirror of
https://github.com/irmen/prog8.git
synced 2024-09-08 10:55:08 +00:00
37 lines
495 B
Lua
37 lines
495 B
Lua
%import c64lib
|
|
%zeropage basicsafe
|
|
|
|
main {
|
|
|
|
sub start() {
|
|
|
|
str s1 = "apple"
|
|
str s2 = "banana"
|
|
byte[] a1 = [66,77,88,0]
|
|
ubyte i1 = 101
|
|
uword w1 = 000
|
|
|
|
c64.STROUT(s1)
|
|
c64.CHROUT('\n')
|
|
c64.STROUT(a1)
|
|
c64.CHROUT('\n')
|
|
|
|
c64scr.print("bla\n")
|
|
|
|
; c64scr.print_uwhex(s1, true)
|
|
; w1 = &s1
|
|
; c64scr.print_uwhex(w1, true)
|
|
;
|
|
; c64scr.print_uwhex(a1, true)
|
|
; w1 = &a1
|
|
; c64scr.print_uwhex(w1, true)
|
|
;
|
|
; s1 = s1
|
|
; s1 = s2
|
|
; s2 = "zzz"
|
|
|
|
}
|
|
}
|
|
|
|
|