Default values for registers



Hi,
I'm pretty new to ASM. There is a sample source code for a boot
loader:

**********************************
org 0x7C00
start:

cli
;define stack
mov ax, 0x9000
mov ss, ax
mov sp, 0
sti

mov [bootdriv], dl
.....
***********************************

whereas bootdriv is a defined as a variable byte.

Is DX (resp. all registers) initiated with 0 for sure? Is there a
default value defined for the registers?

THX, Langi

p.s.: I use TASM
.



Relevant Pages

  • Re: which way is faster?
    ... For example, I can add to allocated variables, and I can move them to ... addition in the registers is faster. ... MOV eax, ... cycles I read, inclusive, Using your previously posted technic. ...
    (alt.lang.asm)
  • Re: howto: MOV EAX, <64bit value> ?
    ... mov eax, ... MOV and the same number of 'pull' instructions on the other. ... wise compression routine to get them to fit into the 8-bit registers. ...
    (alt.lang.asm)
  • Re: Help in getting application to access I/O space
    ... pointers for how to do 32-bit I/O space accesses, ... BYTE inpb(USHORT addr) ... mov dx, addr ... the registers are mapped as offsets into "I/O Space". ...
    (microsoft.public.windowsce.embedded)
  • Re: Help in getting application to access I/O space
    ... BYTE inpb(USHORT addr) ... mov dx, addr ... the registers are mapped as offsets into "I/O Space". ...
    (microsoft.public.windowsce.embedded)
  • Re: Help in getting application to access I/O space
    ... BYTE inpb(USHORT addr) ... mov dx, addr ... the registers are mapped as offsets into "I/O Space". ...
    (microsoft.public.windowsce.embedded)