Questions tagged [hla]

High Level Assembly Language (HLA) is an educational language created by Randall Hyde and documented in his book Art of Assembly.

High Level Assembly Language (HLA) is a procedural language that compiles to x86 machine code developed by Randall Hyde to help students learn Assembly language. HLA incorporates high level programming language constructs including multi-dimensional arrays, ENUMs, bounds checking, functions, and a standard library. This "High Level" C-like code can be mixed with a subset of x86 Assembler inline.

To purchase Art of Assembly, find it on the No Starch Press

73 questions
0
votes
1 answer

How to find string length in HLA?

I need help finding the string length of the user input. sample output: Feed Me: asdf The String You Entered: asdf Has Length = 4 How do I do it? It's really hard to find HLA resources on the internet. The output that I got is -23 and it is…
Jes
  • 1
  • 1
0
votes
0 answers

Hello world program in hla

Am getting an error when running HLA code. It's a simple program so I highly doubt the code is at fault. The error: POLINK: warning: /SECTION:.bss ignored; section is missing. The code: program HelloWorld; #include("stdlib.hhf") …
j3ff
  • 1
  • 1
0
votes
1 answer

I am writing a HLA (High Level Assembly) to find the largest value. And return in AH register

I am writing a HLA (High Level Assembly) to find the largest value. And return in AH register.My results keep giving me "-52" instead of the largest value, 20 in this case. I would appreciate any input to put me back on track. // File: Largest …
Matt_Ag
  • 25
  • 5
0
votes
0 answers

Floating Point Value Stack on HLA

I am trying to create a function which returns a character value based on a floating-point value such as: |Percentage | Letter Grade | | 90.0 - 100.0 A | | 80.0 - 89.9 B | | 70.0 - 79.9 C | |…
0
votes
1 answer

I am writing HLA language to determine the input are the same or not the same

PROGRAM 6: Same Write an HLA Assembly language program that implements a function which correctly identifies when all four parameters are the same and returns a boolean value in AL (1 when all four values are equal; 0 otherwise). This function…
Matt_Ag
  • 25
  • 5
0
votes
1 answer

Pop/Push Instruction

I need help with this push pop situation. I'm trying to write an HLA Assembly language program that implements a function which correctly identifies when all four parameters are the same and returns a boolean value in AL (1 when all four values are…
0
votes
1 answer

Trying to convert if-else conditional to Assembly?

How can I convert this to assembly language? if((w == x)&&(x == y)&&(y == z)&&(z == w)) into HLA form with series of cmp and jmp command? here my command so far: program same; #include("stdlib.hhf"); procedure theSame(w:int16; x:int16; y:int16;…
0
votes
0 answers

Pointers in x86 HLA Assembly

I was wondering if something could explain pointers in Assembly to me. For example, what would mov( eax, [ebx] );, mov( &iValue, EBX );, and mov( VarName[ eax ], al ); mean? Thank you!
Gabriel
  • 1
  • 2
0
votes
1 answer

HLA compilation - can build directory be specified?

By default, compiling hla filename.hla builds an executable in the currently directory. Can a different directory be specified?
0
votes
1 answer

How do I run an HLA code in CMD that is written in Notepad++?

I am trying to run an HLA code in Command Prompt from a code I have written in Notepad++ but I'm not sure how to find the program in Command Prompt. How do I locate the program? I believe it should look something like this, but I'm not sure: cd…
0
votes
1 answer

Why is "(" expected instead of "=" in the statement maxVal=input

program MaxMin; #include("stdlib.hhf") static count: int32:=0; input: int32; maxVal: int32; minVal: int32; sum: int32:=0; boolVar : boolean:= true; begin MaxMin; while(boolVar) do stdout.put("Enter a number, 0 to…
0
votes
1 answer

HLA program is an infinite loop?

So the program I'm trying to write in HLA should do the dollowing: I enter a digit, and it gives a pattern of numbers. The pattern should show all the odd numbers from 1 up to that number followed by all the even numbers from 2 up to that number.…
0
votes
1 answer

HLA recursive division errors with corresponding C code

Here is my errored hla program: it always print nothing... it should prompt user for two int8 integers and print the integer quotient after calling divideRec, increment the result with properly pushing and popping in stack aligns...cannot figure out…
0
votes
1 answer

High Level Assembly (HLA) Programming

I'm having trouble figuring out this assignment that I have in HLA. Write a program to produce a number table as described here. This table should be built from a single integer value provided by the user. The program will display a square 5X5 of…
Julio Sandoval
  • 103
  • 1
  • 12
0
votes
0 answers

Can't build PyHLA with python3.5 for Morse simulator

I hope someone here knows about PyHLA. Basically it allows you to use C++ code in python API. I'm trying to build it with python3.6 using cmake because i need to run a morse simulation with it and morse need at least python3.3. I have python 3.6 and…
mhzar
  • 31
  • 4