mirror of
https://github.com/irmen/prog8.git
synced 2025-02-16 22:30:46 +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 $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 $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 $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 $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 $FF9F = SCNKEY() clobbers(A,X,Y) ; scan the keyboard
|
||||||
romsub $FFA2 = SETTMO(ubyte timeout @ A) ; set time-out flag for IEEE bus
|
romsub $FFA2 = SETTMO(ubyte timeout @ A) ; set time-out flag for IEEE bus
|
||||||
|
@ -11,18 +11,17 @@ main {
|
|||||||
cx16.r0=0
|
cx16.r0=0
|
||||||
|
|
||||||
cx16.FB_init()
|
cx16.FB_init()
|
||||||
|
cx16.GRAPH_init()
|
||||||
cx16.r0 = 0
|
cx16.r0 = 0
|
||||||
cx16.r1 = 0
|
cx16.r1 = 0
|
||||||
cx16.FB_cursor_position()
|
cx16.FB_cursor_position()
|
||||||
uword xx
|
ubyte color
|
||||||
ubyte yy
|
repeat 320*199 {
|
||||||
for yy in 199 downto 0 {
|
cx16.FB_set_pixel(color)
|
||||||
for xx in 319 downto 0 {
|
color++
|
||||||
cx16.FB_set_pixel( yy+lsb(xx))
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
; cx16.GRAPH_init()
|
uword xx
|
||||||
for xx in 0 to 319 step 32 {
|
for xx in 0 to 319 step 32 {
|
||||||
ubyte q
|
ubyte q
|
||||||
for q in 0 to 31 {
|
for q in 0 to 31 {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user