2021-03-16 22:06:28 +00:00
|
|
|
%import textio
|
2021-03-18 18:17:05 +00:00
|
|
|
%zeropage basicsafe
|
2021-02-28 19:40:31 +00:00
|
|
|
|
2021-03-05 21:49:14 +00:00
|
|
|
main {
|
2021-03-15 21:24:09 +00:00
|
|
|
|
2021-03-18 18:17:05 +00:00
|
|
|
sub start() {
|
2021-03-20 01:39:53 +00:00
|
|
|
|
2021-03-24 20:49:33 +00:00
|
|
|
str string1 = "irmen"
|
|
|
|
str string2 = "hello"
|
2021-03-23 22:44:14 +00:00
|
|
|
|
2021-03-24 20:49:33 +00:00
|
|
|
uword xx = $f000
|
2021-03-24 21:01:22 +00:00
|
|
|
word ww
|
|
|
|
|
|
|
|
ubyte[] arr = [1,2,3]
|
|
|
|
arr = ~ arr
|
|
|
|
cx16.r0 = ~cx16.r0
|
|
|
|
ww = -cx16.r0
|
|
|
|
cx16.r0 = not cx16.r0
|
2021-03-24 20:42:27 +00:00
|
|
|
|
|
|
|
|
|
|
|
; ubyte[] array = [1,2,3,4]
|
|
|
|
; ubyte ix
|
|
|
|
;
|
|
|
|
; ubyte a = array[1] + array[ix]
|
|
|
|
; a = array[ix] + array[ix]
|
|
|
|
; a = array[ix+1] + array[ix]
|
|
|
|
; uword multiple=0
|
|
|
|
; a = array[lsb(multiple)] + array[ix]
|
2021-03-23 22:44:14 +00:00
|
|
|
|
|
|
|
|
2021-03-22 00:45:19 +00:00
|
|
|
; str filename = "titlescreen.bin"
|
|
|
|
; ubyte success = cx16.vload(filename, 8, 0, $0000)
|
|
|
|
; if success {
|
|
|
|
; txt.print("load ok")
|
|
|
|
; cx16.VERA_DC_HSCALE = 64
|
|
|
|
; cx16.VERA_DC_VSCALE = 64
|
|
|
|
; cx16.VERA_L1_CONFIG = %00011111 ; 256c bitmap mode
|
|
|
|
; cx16.VERA_L1_MAPBASE = 0
|
|
|
|
; cx16.VERA_L1_TILEBASE = 0
|
|
|
|
; } else {
|
|
|
|
; txt.print("load fail")
|
|
|
|
; }
|
2021-03-16 22:06:28 +00:00
|
|
|
}
|
2021-02-21 21:17:28 +00:00
|
|
|
}
|
2021-03-18 18:17:05 +00:00
|
|
|
|