asm cleanup
This commit is contained in:
		
							parent
							
								
									10559bde8b
								
							
						
					
					
						commit
						9808616203
					
				| 
						 | 
				
			
			@ -74,7 +74,6 @@ cleardisplay:
 | 
			
		|||
    bne cleardisplay
 | 
			
		||||
    rts
 | 
			
		||||
 | 
			
		||||
; TODO: get this to work, (also i think emu-side i need better tooling), rn it just draws a heart to $6000, so i think the addition isn't working or something
 | 
			
		||||
draw: ; draw a character at (20, 30)
 | 
			
		||||
    lda #63
 | 
			
		||||
    push
 | 
			
		||||
| 
						 | 
				
			
			@ -126,7 +125,7 @@ get_char_address:   ; gets vram address for a character at (x, y),
 | 
			
		|||
; data stack is built up of 2-byte cells
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
; TODO: this is broken, the return address gets mangled somewhere in here, could be an emulator problem tho
 | 
			
		||||
; TODO: this is broken, jumping here does nothing to the stack and skips several instructions, could be an emulator problem tho
 | 
			
		||||
push_lit: ; this bad boy lets you inline a literal (low byte first) right after `jsr push_lit` and put it on the stack, once again, on this channel we love garth wilson
 | 
			
		||||
   push2
 | 
			
		||||
   phx
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue