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,503 of 4,675   
   firr to All   
   Re: handy data section format (esp for i   
   22 Jul 18 15:43:46   
   
   From: profesor.fir@nospicedham.gmail.com   
      
   W dniu niedziela, 22 lipca 2018 23:59:14 UTC+2 użytkownik firr napisał:   
   > 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   
      
   one idea that come to my mind now is use one non necessary leading zero for   
   shorts   
   and two for ints like   
      
   3 - byte   
   03 - short   
   003 - int   
   hovever im not sure if that is good (probably not much common)   
      
   --- 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