Start cleanup 4 byte address disassembly

This commit is contained in:
michaelangel007 2016-01-11 02:11:04 -08:00
parent 3066eadaf2
commit 329867e140

View File

@ -1155,28 +1155,29 @@ To select which row to draw at we'll pass that in the X register to our DrawChar
; PARAM: A = glyph to draw ; PARAM: A = glyph to draw
; PARAM: Y = column to draw at; $0 .. $27 (Columns 0 .. 39) (not modified) ; PARAM: Y = column to draw at; $0 .. $27 (Columns 0 .. 39) (not modified)
; PARAM: X = row to draw at; $0 .. $17 (Rows 0 .. 23) (destroyed) ; PARAM: X = row to draw at; $0 .. $17 (Rows 0 .. 23) (destroyed)
ORG $0320 ORG $0320
320: DrawCharColRow 0320: DrawCharColRow
320:48 PHA 0320:48 PHA
321:20 28 03 JSR SetCursorRow 0321:20 28 03 JSR SetCursorRow
324:68 PLA 0324:68 PLA
325:4C 3B 03 JMP DrawCharCol 0325:4C 3B 03 JMP DrawCharCol
; FUNC: SetCursorRow( row ) ; FUNC: SetCursorRow( row )
; PARAM: X = row to draw at; $0 .. $17 (Rows 0 .. 23) (not modified) ; PARAM: X = row to draw at; $0 .. $17 (Rows 0 .. 23) (not modified)
; INPUT : $E5,$E6 initial pointer to the destination screen scanline ; INPUT : $E5,$E6 initial pointer to the destination screen scanline
; Note: Must start at every 8 scanlines. ; Note: Must start at every 8 scanlines.
; OUTPUT: $F5,$F5 working pointer to the destination screen scanline ; OUTPUT: $F5,$F5 working pointer to the destination screen scanline
ORG $0328 ORG $0328
328:BD 00 64 LDA HgrLoY,X ; HgrLoY[ row ] 0328: SetCursorRow
32B:18 CLC 0328:BD 00 64 LDA HgrLoY,X ; HgrLoY[ row ]
32C:65 E5 ADC HgrLo 032B:18 CLC
32E:85 F5 STA TmpLo 032C:65 E5 ADC HgrLo
330:BD 18 64 LDA HgrHiY,X ; HgrHiY[ row ] 032E:85 F5 STA TmpLo
333:18 CLC 0330:BD 18 64 LDA HgrHiY,X ; HgrHiY[ row ]
334:65 E6 ADC HgrHi 0333:18 CLC
336:85 F6 STA TmpHi 0334:65 E6 ADC HgrHi
338:60 RTS 0336:85 F6 STA TmpHi
0338:60 RTS
``` ```
Enter in: Enter in: