Skip to content

Commit

Permalink
Remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
Magicrafter13 committed Mar 11, 2020
1 parent 0e065a9 commit 0c83ef4
Showing 1 changed file with 0 additions and 39 deletions.
39 changes: 0 additions & 39 deletions TICTAC.ASM
Original file line number Diff line number Diff line change
Expand Up @@ -738,45 +738,6 @@ getColumn ENDP
; Get Column Procedure ENDS |
;---------------------------|

;--------------------------------------|
; PCjr/Tandy, Set Pixel Procedure |
; AL = color (0-15) |
; CX = column (video offset) |
; DX = video bank (0-3) |
; ES must be B800 |
; Preserves BX |
;--------------------------------------|
JrSetPixel PROC
;
; Save registers.
;
push BX ; this is the only register not required by this procedure, so there's a good chance it's being used for something
push AX ; save color
;
; Set Base register to correct bank of memory
;
mov AX,2000h
mul DX
mov BX,AX ; now we have the correct segment for this pixel row
pop AX ; restore color
;
; Add "column" offset
;
add BX,CX
;
; Write the byte to the video buffer.
;
mov ES:[BX],AL
;
; Restore registers and return.
;
pop BX
ret
JrSetPixel ENDP
;--------------------------------------|
; PCjr/Tandy, Set Pixel Procedure ENDS |
;--------------------------------------|

;------------------------------|
; PCjr/Tandy, draw sprite |
; BX = address of sprite |
Expand Down

0 comments on commit 0c83ef4

Please sign in to comment.