2022-05-22 15:34:08 +00:00
|
|
|
%import textio
|
2022-08-09 21:38:29 +00:00
|
|
|
%import diskio
|
2022-07-31 11:38:00 +00:00
|
|
|
%zeropage basicsafe
|
2022-03-13 11:52:12 +00:00
|
|
|
|
2022-07-08 19:50:32 +00:00
|
|
|
main {
|
2022-08-07 11:45:03 +00:00
|
|
|
sub start() {
|
2022-08-09 21:38:29 +00:00
|
|
|
romsub $5000 = external_command() -> ubyte @R15
|
|
|
|
ubyte @shared result = external_command()
|
2022-08-07 22:09:18 +00:00
|
|
|
}
|
|
|
|
|
2022-08-09 21:38:29 +00:00
|
|
|
; sub start2() {
|
|
|
|
; ubyte[] arr = [1,2,3,4]
|
|
|
|
; uword pointer
|
|
|
|
; ubyte ix
|
|
|
|
;
|
|
|
|
; arr[ix] = arr[ix]+1
|
|
|
|
;
|
|
|
|
;; arr[3] = arr[3]+1
|
|
|
|
;; pointer[3] = pointer[3]+1
|
|
|
|
;
|
|
|
|
; txt.print_ub(arr[3])
|
|
|
|
; }
|
2022-07-14 17:25:08 +00:00
|
|
|
}
|