parent
289673a249
commit
91683d1bee
11
main.tal
11
main.tal
|
@ -387,6 +387,15 @@ RTN
|
|||
&end
|
||||
RTN
|
||||
|
||||
@draw-free-mem ( draws amount of free memory )
|
||||
;box .Screen/addr DEO2
|
||||
#20 .Screen/color DEO
|
||||
.Screen/x DEI2 #0008 ADD2 .Screen/x DEO2
|
||||
#20 .Screen/color DEO ( clear the space to draw the number in by drawing boxes over it )
|
||||
.Screen/x DEI2 #0008 SUB2 .Screen/x DEO2 ( move back into position )
|
||||
#ffff ;pattern_pointer LDA2 SUB2 ( calculate free memory )
|
||||
SWP ;draw-byte JSR2 ;draw-byte JSR2 ( draw it )
|
||||
RTN
|
||||
@draw
|
||||
;draw-playhead JSR2
|
||||
#0000 .Screen/x DEO2
|
||||
|
@ -395,6 +404,7 @@ RTN
|
|||
.Draw/pattern-x LDZ2 .Screen/x DEO2
|
||||
.Draw/pattern-y LDZ2 .Screen/y DEO2
|
||||
.Edit/pattern-addr LDZ2 ;draw-pattern JSR2
|
||||
;draw-free-mem JSR2
|
||||
RTN
|
||||
|
||||
@play-line ( addr ch ) ( plays the pattern line at addr on the channel ch )
|
||||
|
@ -457,6 +467,7 @@ BRK
|
|||
]
|
||||
|
||||
@line [ 1818 1818 1818 1818 ] ( 8 pixel vertical bar )
|
||||
@box [ ffff ffff ffff ffff ] ( filled box sprite )
|
||||
@font ( specter8-frag font )
|
||||
[
|
||||
0000 0000 0000 0000 0008 0808 0800 0800
|
||||
|
|
Reference in New Issue