Skip to content

Commit a18f763

Browse files
committed
Fix build, fix sizing
1 parent afe804b commit a18f763

2 files changed

Lines changed: 9 additions & 9 deletions

File tree

loader.nasm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,5 +93,5 @@ LoadFailature:
9393
9494
%include "commonSubroutines.nasm"
9595
96-
times 0200h - 2 - ($ - $$) db 0 ; zerofill up to 510 bytes
96+
times 200h - 2 - ($ - $$) db 0 ; zerofill up to 510 bytes
9797
dw 0AA55h ; Boot Sector signature

main.nasm

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -161,12 +161,12 @@ StartGame:
161161
.end:
162162
pop dx
163163
dec byte [si+Column.posX]
164-
add si, column_size
164+
add si, Column_size
165165
inc dl
166166
cmp dl, [colCnt]
167167
jne .columnLoop
168168
169-
mov al, column_size ; spawn new Column if necessary
169+
mov al, Column_size ; spawn new column if necessary
170170
mov ah, [colCnt]
171171
dec ah
172172
mul ah
@@ -206,7 +206,7 @@ StartGame:
206206
jmp GameOver
207207
.noGroundCollision:
208208
209-
cmp word [colCnt], 0 ; remove first Column if off view. add score. check Column collision
209+
cmp word [colCnt], 0 ; remove first column if off view. add score. check column collision
210210
je .noRemove
211211
mov al, [cols+Column.posX]
212212
inc al
@@ -237,10 +237,10 @@ StartGame:
237237
dec byte [colCnt]
238238
cld
239239
mov si, cols
240-
add si, column_size
240+
add si, Column_size
241241
mov di, cols
242242
mov al, [colCnt]
243-
mov ah, column_size
243+
mov ah, Column_size
244244
mul ah
245245
xor cx, cx
246246
mov cl, al
@@ -314,7 +314,7 @@ ClearScreen:
314314
; args: dl = x
315315
; invalidates: ax, bx, dx, di
316316
SpawnColumn:
317-
mov al, column_size
317+
mov al, Column_size
318318
mov ah, [colCnt]
319319
mul ah
320320
xor bx, bx
@@ -378,7 +378,7 @@ playerX db 15 ; const
378378
playerY dd 0.0
379379
playerYInt db 0
380380
playerYVel dd 0.0
381-
cols resb column_size * MAX_VISIBLE_COLUMNS
381+
cols resb Column_size * MAX_VISIBLE_COLUMNS
382382
colCnt db 0
383383
score dw 0
384384

@@ -396,4 +396,4 @@ updateInterval dd 1_000_000 / 20
396396
restartDelay dd 250_000
397397

398398
%include "commonSubroutines.nasm"
399-
times 1200h - ($ - $$) db 0 ; take up 3 segments
399+
times (3 * 200h) - ($ - $$) db 0 ; take up 3 segments

0 commit comments

Comments
 (0)