home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.lang.asm.x86      Ahh, the lost art of x86 assembly      4,675 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 3,502 of 4,675   
   firr to All   
   handy data section format (esp for ints)   
   22 Jul 18 14:53:02   
   
   From: profesor.fir@nospicedham.gmail.com   
      
   i wrote my own x86 assembly, its somewhat working  though not all mnemonics   
   typed in yet etc   
      
   you probaby know the data section, i dont even remember present assemblers but   
   you must have   
   something like ".data" or "DATA"   
      
   coommand where you can put some defined ram values and define labels to it (it   
   wil then be stored in .data section of exe file and later loaded by loader   
   into ram   
      
   problem is i would like to have some syntax for easy defining of data there   
   what i invented is something like   
      
   DATA my_label:  "akjhaskjh" 13 10 0 33 33 42   
   DATA my_label2:  33 33 "dkjsksj" 13 10 "wkjhwjk" 0 33 33 42   
      
   i mean i defined syntax for asci strings and bytes, what i need is a syntax to   
   define shorts and ints there   
      
      
   now here every number is byte here how i should extend it to naturally handle   
   ints and shorts?   
      
   (i also could use hex but this is easier as i eventually could just use 0x00   
   0x00003034 convention and it also handles the byte/short/int/long   
   automatically - but what to define decimal shorts/ints ?   
      
   notjhing that comes to my mind seems to much good   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca