Hi Daniweb! Community Center Say Hello! by Goalatio … to say this here (Might be considered advertising). I am Goalatio from youtube as well, if anyone wants to see some… Problem with Ascii => Hex conversion Programming Software Development by Goalatio … Youtube if you have the time please, my username is Goalatio. Here's my code, the library that I am using… Re: Problem with Ascii => Hex conversion Programming Software Development by Goalatio … posted) open. If you are interested.. my MSN is [email]Goalatio@live.com[/email] Re: Storing multiple things in a variable? Programming Software Development by gusano79 [QUOTE=Goalatio;1031259]...I found that a word (dw) will only hold … value was there is overwritten by the new value. [QUOTE=Goalatio;1031259]...What I'm trying to ask is, would there… Re: Command-line arguments? Programming Software Development by gerard4143 [QUOTE=Goalatio;1014622]Thanks. I would not know how to test this … Re: Command-line arguments? Programming Software Development by gerard4143 [QUOTE=Goalatio;1014852]So saying "cmp bx,1" would check … Re: Jumping to the next boot device? Programming Software Development by lee.j.baxter [QUOTE=Goalatio;1392208]Not sure how CDs work, but if it was … Re: Jumping to the next boot device? Programming Software Development by lee.j.baxter [QUOTE=Goalatio;1392601]Sure thing, floppy disks use 'sectors' to store their … Re: How Do i start making an OS Programming Software Development by Kieran Y5 [QUOTE=Goalatio;1406315]Don't use virtualbox, virtualbox does a few 'things' to give the illusion that your program works, when in reality, if you boot from it, it will not. I recommend Microsoft Virtual PC 2007.[/QUOTE] Really? I always thought that VirtualBox does a good job. What does it not do that Microsoft Virtual PC 2007 does? Re: How Do i start making an OS Programming Software Development by lee.j.baxter [QUOTE=Goalatio;1406315]Don't use virtualbox, virtualbox does a few 'things' … Re: Operating system Development Programming Software Development by Goalatio I have not coded .asm for almost 8 months... but what the hell. Take a look at my stuff and tell me if you want any of it. youtube.com/Goalatio Re: Hi Daniweb! Community Center Say Hello! by Dani Hi there and welcome :) Re: Hi Daniweb! Community Center Say Hello! by crimgirl It's great to have you as a member!See you around! Re: Hi Daniweb! Community Center Say Hello! by js112 hi ~ welome to this forum, you can learn a lot , enjoy it:) Re: Hi Daniweb! Community Center Say Hello! by mahgobb Hey, you look nice, hope we could be friends! Re: Hi Daniweb! Community Center Say Hello! by ahihihi... Wanna join the Daniweb army to take over the universe? ( don't worry we're not using guns, just computers... ) Kidding! ^.^ welcome to Daniweb.com ^.^ you really chosen a very collaborative IT forum as well as (here) having intelligent + conceited mods here ^.^ hope they won't scare you away ^.^ Re: Hi Daniweb! Community Center Say Hello! by edhardy I'm sure you will do great here! This place is great!! Re: Problem with Ascii => Hex conversion Programming Software Development by NotNull So your getting a hexadecimal value from the command line in the form of asci characters??? Couldn't tell exactly what your code was doing. Heres an example, the asci string '72' is specified as a command line parameter, it makes the asci-values 37h and 32h. So why not create an array such as this to get the value of each nibble: [code] arr db '… Re: Problem with Ascii => Hex conversion Programming Software Development by NotNull Ok, well I made code that accepts a hexadecimal number at the command line and prints an 'A' with the specified background/foreground colors. [code] bits 16 org 100h start: mov cx, 2 mov si, 0x82 mov di, hexnum cld rep movsb mov al, byte [hexnum] call getnibble shl al, 4 push ax mov al, byte [hexnum+1] call getnibble pop bx … Re: Problem with Ascii => Hex conversion Programming Software Development by Goalatio Sorry, i've been gone for a while. Anyways, what do the commands.. rep movsb (Repeat mov-string-byte)? repnz scasb (Repeat not zero 'store ...? string-byte') I've never seen those two commands, would you mind saying what they do? I changed my code around a bit so that it doesn't need the library anymore. Do you see what I did wrong? It … Re: Problem with Ascii => Hex conversion Programming Software Development by NotNull 15. shl ax, 12 actually a byte is 8-bits so shl ax, 8 to get AL into AH 16. mov byte [store + 0],ah You are storing the hex digits into two separate bytes, the attributes are actually contained in the low and high nibble of one byte. So: [code] mov al, firsthexdigit shl al, 4 ; place first digit in high nibble of byte add al, … Re: Problem with Ascii => Hex conversion Programming Software Development by Goalatio Thanks for that last comment (Eventually got it to work exactly how I wanted it to.) Finished code: [CODE][org 0100h] [section .text] ;Get arguments from CMD xor bx, bx ;Zero out BX mov bl, 0x80 ;Get Command Tail Length at address 0x80 mov bx, 0x82 ;place offset of command tail into BX. mov dx,bx ;Move offset into DX mov … Re: Problem with Ascii => Hex conversion Programming Software Development by Goalatio And now I added the full functionality of my old linecol command. linecol "attr" "text" Again, thanks for the help. [CODE][org 0100h] [section .text] ;Get arguments from CMD xor bx, bx ;Zero out BX mov bl, 0x80 ;Get Command Tail Length at address 0x80 mov bx, 0x82 ;place offset of command tail into BX. mov …