flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
Mr_Silent 20 Aug 2006, 16:38
if I understand you correctly...
Code: buffer rb 256 .... les di, [buffer] ;es:di |
|||
![]() |
|
Tomasz Grysztar 20 Aug 2006, 16:46
LES loads the pointer from the given memory area, so this wouldn't work.
Basically when you write the .COM program, it's enough to set up the DI to "buffer" offset, since ES is already the same as CS and DS. If you write multisegment program, it's up to you to know to which segment the given offset applies to ("buffer" label itself is always just an offset). |
|||
![]() |
|
darkshadow6921 21 Aug 2006, 03:02
Ok thanks guys, Tomasz your detailed explaination makes sense (after re reading it several times..hehe). I removed the les di, buffer line and just did a
mov di, buffer and when i dump the data from the buffer with a print command, the tell-tale signs of VESA show up.. so the data seems to be getting there now. Thanks again ![]() |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2023, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.