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
5
votes
1 answer

HLA (Higher Level Assembly) Installation and Linker

I am trying to install the executalbles to compile programs in HLA on a Mac OS 10.8. Although the tools seem to be in the right place and working I am getting the following error when trying to compile the first program ld: warning:…
Mike M
  • 4,879
  • 5
  • 38
  • 58
3
votes
2 answers

Code isn't jumping correctly

I'm currently trying to do my assignment but I'm having some issues. This is the assignment https://i.stack.imgur.com/7KRAL.png As it is right now, When I put 'CC' I only get back Feed me(2 hex digits with the bits prsseeee):CC Fall Semester Total…
2
votes
2 answers

Programming exercises to accommodate the Art of Assembly?

I have been learning High Level Assembly (HLA) via the book Art of Assembly, which is meant to use high level language constructs to introduce concepts of assembly language. The problem is while I seem to understand quite a lot of what is in the…
Sonny Ordell
  • 334
  • 2
  • 20
  • 59
2
votes
1 answer

Binary search for sequential search

I keep getting error messages when I search for the numbers that are within the range of the top 1/4 of my array. For example, any numbers above 76 are not searchable. Plus, any numbers that are lower than my lowest number in the array or higher…
john lee
  • 23
  • 4
2
votes
1 answer

Recursive Division Assembly program

I am working on an assembly, techincally HLA (High Level Assembly), program. I need to convert this C code to assemvbly. Here is the assignment. Write an HLA Assembly language program that implements the following function: procedure…
ecain
  • 1,282
  • 5
  • 23
  • 54
2
votes
1 answer

flex: input rules are too complicated (>= 32000 NFA states) (while compiling HLA on 62bit)

I'm trying to compile HLA on a 62bit (fedora) and ended up with the following error: flex: input rules are too complicated (>= 32000 NFA states) I found directions to address it at below…
VanagaS
  • 3,130
  • 3
  • 27
  • 41
2
votes
0 answers

Array of records in HLA, error in the Art of Assembly book?

I'm currently trying to learn HLA assembler and I'm reading the Art of Assembly book. I'm stuck at the following example: type recType: record arrayField: dword[4,5]; // Other fields .. …
deathnoise
  • 21
  • 1
  • 2
2
votes
1 answer

Missing Section in POLINK warning from HLA code

I have an error that I looked around the internet quite a bit yet I have yet to find a real solution to this problem. Here is the error message I get from my computer (Win 7): POLINK: warning: /SECTION:.bss ignored; section is missing. With this…
1
vote
0 answers

HIGH LEVEL ASSEMBLY(HLA)PROGRAM:

Create an HLA Assembly language program that calculates the cost of an order at a local fast food restaurant from its dollar value menu of items.. The cost will be based on a single 16-bit value entered by the value. The value will be used to…
Kayla
  • 11
  • 2
1
vote
1 answer

While loop with two conditions joined by an AND operator in HLA. Converting C++ to HLA

I want to translate (or manually compile) my program from c++ into HLA. The program reads an inputted number. Then subtracting off three and tens or only tens, determine if that value ends in a zero or a three. Three such numbers in a row win the…
JaimeVzqz
  • 13
  • 3
1
vote
1 answer

I am sorting 3 numbers in HLA Assembly Language in Ascending order. I am not getting the right answer. What is wrong with my logic in HLA

I am sorting 3 numbers in HLA Assembly Language in Ascending order. I am not getting the right answer. What is wrong with my logic in HLA. For Example, if I enter 12, 1, 50, it should sorted 1, 12, 50. Instead,I am getting following result: Gimme X:…
Matt_Ag
  • 25
  • 5
1
vote
0 answers

POLINK: warning: /SECTION:.bss ignored; section is missing

I'm receiving a warning when trying to run a hello world script. I'm just curious to see if there was a quick fix to remove this warning. I read somewhere to change the linker it's using but not sure how to do that. Thanks for any input! POLINK:…
guY
  • 65
  • 9
1
vote
1 answer

I am trying to print a boolean value in HLA program, but it shows a error . I dont understand where did I do wrong?

I am learning assembly language from a book named "The book of Assembly language" by Randall Hyde. The author of this book uses a programming language called HLA.This language is designed by the books author.It has some high level language…
1
vote
0 answers

HLA program crashes with "Segmentation fault: 11" on macOS High Sierra

I am trying to run a simple HLA (High Level Assembly) program on MacOS High Sierra Vesion 10.13.3. I am receiving a "Segmentation fault: 11" on the command line when simply trying to run the program. ./x program x ; #include ( "stdlib.hhf"…
1
vote
2 answers

assembly how to preserve and restore a register

I wrote this code but my professor kept telling me to preserve and restore my registers. I thought I was by declaring a value to the empty registers. program middleFinder; #include( "stdlib.hhf" ); // imports the input and output…
riviera990
  • 33
  • 1
  • 8
1
2 3 4 5