nkeck720 / nos

A command-line based OS written in FASM syntax for i386 and above.
GNU General Public License v2.0
9 stars 5 forks source link

FASM board issue 28 #29

Closed nkeck720 closed 8 years ago

nkeck720 commented 8 years ago

The user program will certainly have destroyed your DS segment register, so first make it point at the kernel:

Code:

mov  ax, 1000h 
mov  ds, ax 
mov  ss, [old_ss] 
mov  sp, [old_sp]