flat assembler
Message board for the users of flat assembler.
  
       
      Index
      > OS Construction > seg off printing | 
  
| Author | 
  | 
              
| 
                  
                   Borsuc 12 Jun 2009, 01:02 
                  You'll have to convert them to ASCII first. That's usually a generic function, search around I'm sure you'll find (sorry it's 4 AM I can't give you code now  
                  _________________ Previously known as The_Grey_Beast  | 
              |||
                  
  | 
              
| 
                  
                   windwakr 12 Jun 2009, 02:14 
                  Theres a routine here you could study that converts hex number to ascii and prints, its written by Thimis. 
                  
                 | 
              |||
                  
  | 
              
| 
                  
                   GhostXoPCorp 12 Jun 2009, 02:27 
                  Borsuc: you dont have to give me code
 
                  windwakr: thanks _________________ Oh that divide overflow. Just jumps out of the bushes every time to scare the day lights out of me.  | 
              |||
                  
  | 
              
| 
                  
                   bitshifter 12 Jun 2009, 04:35 
                  To unpack PBCD into ASCII and print it...
 
                  Code: PrintPBCD: ; AL = PBCD mov ah,al and ax,0xF00F shr ah,4 or ax,0x3030 xchg al,ah call PrintChar ; prints char in AL xchg al,ah call PrintChar ret _________________ Coding a 3D game engine with fasm is like trying to eat an elephant, you just have to keep focused and take it one 'byte' at a time.  | 
              |||
                  
  | 
              
| 
                  
                   GhostXoPCorp 12 Jun 2009, 07:04 
                  must... not...  hit.. copy... ugh  (kidding) thanks, i will take and use this to my advatage. thanks again 
                  _________________ Oh that divide overflow. Just jumps out of the bushes every time to scare the day lights out of me.  | 
              |||
                  
  | 
              
< Last Thread | Next Thread >  | 
    
Forum Rules: 
  | 
    
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.