crawos/source/games/pong.asm
2025-06-11 15:50:22 +01:00

28 lines
329 B
NASM

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