acompiled

The catalog contains seeded project examples. Your workspace stores your own projects and conversations.

sizecoders/tunnel256

Public
Star7

A flight down a tunnel of light for DOS, in under 256 bytes. Every pixel asks the x87 for an angle and a depth.

Leave through text mode

Browse files
Esc used to drop back to DOS still in mode 13h, with the prompt drawn over the last frame.
isoldecommitted 1 parent 21d14c0 commit eacfaa75a651ce5b7a7a0dc80ab6008851730f5e
failing 1 step in 1 ms
1 file changed +3−0
modified tunnel.asm +3−0
@@ -99,6 +99,9 @@ pixel:
9999 in al, 0x60 ; Esc has scancode 1
100100 dec al
101101 jnz frame
102+
103+ mov ax, 0x0003 ; back to text mode
104+ int 0x10
102105 ret
103106
104107 k_angle: dd 40.743665 ; 128 / pi