Compare commits

...

2 Commits

Author SHA1 Message Date
Juhani Krekelä ce07a23355 Remove now-unnecessary shift in draw_rect 2023-03-19 17:19:18 +02:00
Juhani Krekelä 6e4974de3f Document new requirement that rectangle height is at least 1 2023-03-19 17:18:55 +02:00
1 changed files with 2 additions and 3 deletions

View File

@ -129,7 +129,7 @@ mainloop:
; in:
; bx = width of input buffer
; cx = width of rectangle
; dx = height of rectangle
; dx = height of rectangle (must be at least 1)
; ds:si = beginning of source data
; di = X
; bp = Y
@ -153,12 +153,11 @@ draw_rect:
; Convert widths to bytes
shl bx, 1
shl cx, 1
.loop:
; Copy a row
pusha
rep movsb
rep movsw
popa
; Move to the next row in the input buffer