I can declare small simple variables, or asciiz strings. I can't do other things like arrays, structures, pointers to arrays.. like char *x[20] in C, things like that. I have done arrays as:
Code: Select all
array: # char array[400];
.byte 0x0
.zero 400
for pointers arrays of strings I've done:
Code: Select all
str1:
.asciz "str1"
str2:
.asciz "str2"
pstr:
.long str1
.long str2
.long 0x0
I'm looking for some guide or something on how to declare all kinds of possible variables that have some kind of relationship with C, or TASM, forgot I still remember a thing or 2 about how TASM declares variables. Like say:
Code: Select all
x:
.long 0x0
Code: Select all
unsigned long x;
Thanks for any help, and thanks to the people that run this site, I just ran across this site monday and have been reading like crazy. Finally a place that explains things in a way (so far) that I understand... now I have hopes that I may actually be able to write an OS, no matter how mediocre it may be. =))