On Mon, 22 Jan 2001, Brian Stephenson wrote:
> This is my analysis from using nasm diss-assembler but I have to go to a job
> so
> won't be able to check it until tonight.
>
> code from ipl.S to set up stack
>
> mov ax, 0400
> mov ss, ax
> mov ax, 8000
> mov es, ax
>
Hi,
According to the old DOS 'debug' program those instructions should be encoded
as follows:
mov ax, 0400h -> b8 00 04
mov ss, ax -> 8e d0
mov ax, 8000h -> b8 00 80
mov es, ax -> 8e c0
I trust 'debug' since it had never let me down. You can run debug yourself on
DOS or Windows 95/98/Me. Below are the commands for 'debug'
C:\WINDOWS>debug
-a
1991:0100 mov ax,400
1991:0103 mov ss,ax
1991:0105 mov ax,8000
1991:0108 mov es,ax
1991:010A
-u100 109
1991:0100 B80004 MOV AX,0400
1991:0103 8ED0 MOV SS,AX
1991:0105 B80080 MOV AX,8000
1991:0108 8EC0 MOV ES,AX
-q
C:\WINDOWS>
Regards,
- Levi
--
Levi Khatskevitch
CTO
Cachier, Corp.
575 Grand St., Suite E306
New York, NY 10002