assembler - understanding of some lines

Posted by user1571682 on Stack Overflow See other posts from Stack Overflow or by user1571682
Published on 2012-09-14T15:27:13Z Indexed on 2012/09/14 15:38 UTC
Read the original article Hit count: 454

Filed under:
|

with the help of some tutorials, i wrote a little piece of code, to display me a string, after booting from my floppy.

my problem is now, that dont understand some lines, were i hope u can help me, or just tell me, if im right.

code:

mov ax, 07C0h
add ax, 288         ; (512 + 4096) / 16 = 288
mov ss, ax
mov sp, 4096

mov ax, 07C0h
mov ds, ax
  1. line: start the program @ the adress 07C0h (could i change this?)
  2. Add space for 288 paragraphs to ax
  3. ?
  4. Space of 4096 bytes for my program (to store variables and stuff?)
  5. Go to the start adress
  6. ?

thanks for your help.

© Stack Overflow or respective owner

Related posts about assembly

Related posts about nasm