rectangles work

This commit is contained in:
2025-06-11 15:50:22 +01:00
parent be7943320d
commit 4d71868ac6
17 changed files with 321 additions and 48 deletions

27
source/games/pong.asm Normal file
View File

@@ -0,0 +1,27 @@
game_pong:
pusha
call os_set_graphics_mode
call os_draw_graphical_rectangle
call os_set_text_mode
jmp .finish
.detect_input:
call os_read_input
cmp al, 08h
je .finish
jmp .detect_input
.finish:
call os_set_text_mode
popa
ret
section .data
x_start dw 5
y_start dw 5
x_end dw 30
y_end dw 46
colour db 1100b