Page 1 of 1
some minor stuff i dont understand
Posted: Wed Jun 13, 2007 3:13 pm
by Zacariaz
Code: Select all
mydata segment para
pGDT32 label fword
; somedata
mydata ends
code16 segment para use16
is this the standard nasm way? if so im in trouble, if not, how would it be written in nasm?
I do by the way understand it (i think) but the syntax seems all wrong to me.
my best guess would be that i should look something like this
[BITS 16]
pGDT32:
; somedata
end of story, by i suspect that there is something very important i am missing here.
Posted: Wed Jun 13, 2007 3:42 pm
by Combuster
the syntax looks like it comes from some funky nonstandard assembler (masm or tasm?). in nasm you'd have:
Code: Select all
SECTION .text
BITS 16
somelabel:
; code
SECTION .data
anotherlabel:
; data declarations
Posted: Wed Jun 13, 2007 3:57 pm
by mathematician
Combuster wrote:the syntax looks like it comes from some funky nonstandard assembler (masm or tasm?)
I wouldn't exactly call masm non standard (for that it is). It has been around for as long as the PC has, which is 26 years now.
Posted: Wed Jun 13, 2007 4:04 pm
by Combuster
age doesn't imply usage