Skip to main content

Questions tagged [assembly]

For questions relating to assembly language, a low-level programming language that provides a human-readable representation of machine code instructions. It is specific to the architecture of a particular computer system and is considered a symbolic representation of the machine code.

0 votes
3 answers
334 views

So, I recently run into this bug in the compiler for my programming language that outputs WebAssembly Text Format. Here is what the output looked like: I fixed it by changing in my compiler: ...
FlatAssembler's user avatar
-6 votes
2 answers
372 views

Here is an example program in PicoBlaze assembly language illustrating and explaining the problem: ...
FlatAssembler's user avatar
0 votes
1 answer
430 views

So, as per my previous question, I added the support for the ternary conditional operator ?: into my PicoBlaze assembler written in JavaScript for compile-time ...
FlatAssembler's user avatar
8 votes
0 answers
349 views

So, I've been studying the basics of the ARM assembly (and daydreaming about making a compiler which outputs it) and I can't help but notice that the mnemonic doing the bitwise OR operation in ARM ...
FlatAssembler's user avatar
2 votes
2 answers
366 views

GNU Assembler, when targetting x86, has directives .att_syntax and .intel_syntax for switching between Intel Syntax and AT&T ...
FlatAssembler's user avatar
3 votes
0 answers
213 views

So, I've designed a programming language called AEC and I've made an AEC-to-x86 compiler and an AEC-to-WebAssembly compiler. I am thinking about developing an AEC-to-ARM compiler. A little problem is: ...
FlatAssembler's user avatar
1 vote
0 answers
122 views

How do preprocessors of the assemblers for processors which have "near jump" and "far jump" instructions of different length (like x86) calculate the addresses of the labels? Isn't ...
FlatAssembler's user avatar
5 votes
1 answer
497 views

Rosetta 2 is a program that enables the new ARM-based Macs to run programs for old x86-based Macs by translating x86 machine code to ARM machine code. But how does it do that? What seems especially ...
FlatAssembler's user avatar
-2 votes
1 answer
233 views

Suppose somebody completely misunderstands how assembly language works and, instead of writing: load s1, s2 load s0, s1 He writes: ...
FlatAssembler's user avatar
1 vote
2 answers
2k views

In my book "Jezici za gimnazijalce" (not available online) and in my Bachelor thesis (which will be online in about a month) I was claiming that assembly languages are like the Piraha ...
FlatAssembler's user avatar
3 votes
1 answer
517 views

A compiler I'm writing generates the following x86-64 assembly (AT&T syntax) for a recursive factorial function. I convert the assembly into an ELF executable using ...
Veera Sivarajan's user avatar
3 votes
1 answer
183 views

In the syntax highlighter I have implemented in my PicoBlaze Simulator in JavaScript, the assembly code address 0 load s0, 0 load s0, a regbank a is highlighted as ...
FlatAssembler's user avatar
17 votes
2 answers
2k views

This is more a question about compiler design than language design, but in low level languages, when a function is called, the parameters are pushed onto the stack, and when the function returns, the ...
CPlus's user avatar
  • 10.5k
5 votes
3 answers
807 views

In my programming language that compiles to WebAssembly, I am using the following syntax for inline assembly: ...
FlatAssembler's user avatar