mirror of
https://github.com/irmen/prog8.git
synced 2024-11-27 03:50:27 +00:00
memtop cx16
This commit is contained in:
parent
96243db88b
commit
b93d9ecd7e
@ -24,7 +24,7 @@ romsub $FF8D = VECTOR(uword userptr @ XY, ubyte dir @ Pc) clobbers(A,Y) ; r
|
||||
romsub $FF90 = SETMSG(ubyte value @ A) ; set Kernal message control flag
|
||||
romsub $FF93 = SECOND(ubyte address @ A) clobbers(A) ; (alias: LSTNSA) send secondary address after LISTEN
|
||||
romsub $FF96 = TKSA(ubyte address @ A) clobbers(A) ; (alias: TALKSA) send secondary address after TALK
|
||||
romsub $FF99 = MEMTOP(uword address @ XY, ubyte dir @ Pc) -> uword @ XY ; read/set top of memory pointer
|
||||
romsub $FF99 = MEMTOP(uword address @ XY, ubyte dir @ Pc) -> ubyte @A, uword @ XY ; read/set top of memory pointer, returns number of banks in A
|
||||
romsub $FF9C = MEMBOT(uword address @ XY, ubyte dir @ Pc) -> uword @ XY ; read/set bottom of memory pointer
|
||||
romsub $FF9F = SCNKEY() clobbers(A,X,Y) ; scan the keyboard
|
||||
romsub $FFA2 = SETTMO(ubyte timeout @ A) ; set time-out flag for IEEE bus
|
||||
|
@ -11,18 +11,17 @@ main {
|
||||
cx16.r0=0
|
||||
|
||||
cx16.FB_init()
|
||||
cx16.GRAPH_init()
|
||||
cx16.r0 = 0
|
||||
cx16.r1 = 0
|
||||
cx16.FB_cursor_position()
|
||||
uword xx
|
||||
ubyte yy
|
||||
for yy in 199 downto 0 {
|
||||
for xx in 319 downto 0 {
|
||||
cx16.FB_set_pixel( yy+lsb(xx))
|
||||
}
|
||||
ubyte color
|
||||
repeat 320*199 {
|
||||
cx16.FB_set_pixel(color)
|
||||
color++
|
||||
}
|
||||
|
||||
; cx16.GRAPH_init()
|
||||
uword xx
|
||||
for xx in 0 to 319 step 32 {
|
||||
ubyte q
|
||||
for q in 0 to 31 {
|
||||
|
Loading…
Reference in New Issue
Block a user