Professional Documents
Culture Documents
SubClearDisplay, HEX 0
SubClearDisplay, HEX 0
JnS SubCountDown
Halt
SubClearDisplay, HEX 0
Loop, Load White / Loads the address for white square into the AC
StoreI Address / Stores white at the desired location based on variable
Address
Load Address / Loads the current address into the AC
Add One / Adds one to the current address
Store Address / Updates the Address variable for the next memory location to
be made white
Load Max / Loads the number of black pixels left
Add One / Adds one to the negative number of pixels
Store Max / Updates the max variable
Skipcond 400 / If max = 0, the number of black pixels is 0 and the display is
white, so skips to halt
Jump Loop / If there are black pixels left, jumps to the top of the loop to
make the next pixel white
JumpI SubClearDisplay
Load PaintDigitCharacter
Add One
Store PaintDigitCharacter
Load PaintDigitDisplay
Add One
Store PaintDigitDisplay
Load InnerCounter
Add One
Store InnerCounter
Skipcond 400
jump InnerLoop
load PaintDigitDisplay
add Thirteen
store PaintDigitDisplay
load OuterCounter
Add One
store OuterCounter
Skipcond 400
jump OuterLoop
JumpI SubPaintDigit
Zero, DEC 0
Five, DEC 5
Fifteen, DEC 15
Thirteen, DEC 13
InnerCounter, DEC 0
OuterCounter, DEC -5
NegativeThree, DEC -3
SubCountDown, HEX 0
Load FontAddr
Add OneThreefive
Store PaintDigitCharacter
OutsideLoop, Load Zero
Add NegativeFour
Store NumberCounter
InsideLoop, Load StartingDigit
Store PaintDigitDisplay
JnS SubPaintDigit
JnS Delay
Load NumPainted
Add One
Skipcond 000
jump FinishCountdown
Store NumPainted
Load PaintDigitCharacter
Subt Thirty
Store PaintDigitCharacter
Load StartingDigit
Add Four
Store StartingDigit
Load NumberCounter
Add One
Store NumberCounter
Skipcond 400
Jump InsideLoop
Load StartingDigit
Add SixtyFour
Store StartingDigit
Jump OutsideLoop
FinishCountdown, JumpI SubCountDown
SixtyFour, DEC 64
NumPainted, DEC -10
NumberCounter, DEC 0
Thirty, DEC 30
OneThreefive, DEC 135
Two, DEC 2
Four, DEC 4
NegativeFour, DEC -4
NegativeTwo, DEC -2
StartingDigit, HEX 0F00
Delay, HEX 0
Load Zero
Add Time
Store Timer
DelayLoop, Load Timer
Subt One
Store Timer
Skipcond 400
jump DelayLoop
JumpI Delay
Timer, DEC 0
Time, DEC 32
//////////////
//// Data
////