News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Hey im new

Started by Fxign, January 02, 2011, 04:57:29 PM

Previous topic - Next topic

Fxign

Im reading randall's HLA book online, but its hard to test it when my program won't work.
When i open HLA it just pops a cmd prompt and closes.

dedndave

put something at the end to wait for a keystroke before terminating
not sure what the HLA lingo is, but for masm32, we use...
        inkey

Fxign

Thats no longer a problem just had to run my cmd.exe as administrator

After that it said could not open hw.hla

Well i did guide it to my folder eg. cd c:\hla\projects\hw

Naaa... problems won't stop
i type hla hw again and:
POLINK: warning: /SECTION:.bss ignored; section is missing.

Well i tried googling and downloaded HIDE and succesfully ran my Hello World on it.

Continuing to read Randy's tutorial i find a hex to decimal converter and test it.

Quoteprogram ConvertToHex;
#include( "stdlib.hhf" );
static
    value: int32;
   
begin ConvertToHex;
stdout.put( "Input a decimal value(i did input 9):" );   
    stdin.get( value );   
    mov( value, eax );
    stdout.put( "The value ", value, " converted to hex is $", eax, nl );
   
end ConvertToHex;

FOUND AT: http://homepage.mac.com/randyhyde/webster.cs.ucr.edu/www.artofasm.com/Windows/PDFs/DataRepresentation.pdf

First i tried it in HIDE, i built it and ran it.
This is my translation of what it says, probably not exact.

ConvertToHex was not recognised as an inner or outer command, runnable program, or a command prompt file.

Then i opened cmd as administrator again and tried hla ConvertToHex
(after setting the folder again)
I was too damn lazy to write it so i took a print screen.



Im also sure the file aint .txt its .hla


Sevag.K

ug!  that's the html copy/paste unicode monster.  you have to change all the quotes to ascii quotes.


Fxign

yep that worked and now im going forward :)
Thanks for helping me.