Skip to content

Commit

Permalink
Allows boot sector to reboot (suggested by @peterferrie)
Browse files Browse the repository at this point in the history
  • Loading branch information
nanochess committed Apr 14, 2024
1 parent 0a37832 commit 83a2aa7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ray.asm
Original file line number Diff line number Diff line change
Expand Up @@ -250,8 +250,12 @@ e6:
je e0 ; No, jump.

mov ax,0x0002 ; Back to text mode.
int 0x10
int 0x10
%if com_file
int 0x20 ; Exit.
%else
int 0x19 ; Reboot.
%endif

sphere:
fld dword [bp+var_x] ; Origin of ray.
Expand Down
Binary file modified ray.img
Binary file not shown.

0 comments on commit 83a2aa7

Please sign in to comment.