Skip to content

Commit

Permalink
Use Monospace format
Browse files Browse the repository at this point in the history
  • Loading branch information
hirotnk authored and happi committed Apr 22, 2020
1 parent f6526c2 commit 1b4b71d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions chapters/beam.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,7 @@ We will look closer at the BEAM emulator later but we will take a
quick look at how the add instruction is implemented. The code is
somewhat hard to follow due to the heavy usage of macros. The
STORE_ARITH_RESULT macro actually hides the dispatch function which
looks something like: _I += 4; Goto(*I);_.
looks something like: `I += 4; Goto(*I);`.

[source, C]
-------------------------------------------
Expand Down Expand Up @@ -547,8 +547,8 @@ Now imagine that the compiled C code for these instructions end up at
memory addresses 0x3000, 0x3100, and 0x3200. When the BEAM code is
loaded the three move instructions in the code will be replaced by the
memory addresses of the implementation of the instructions. Imagine
that the code (+{move,{x,0},{x,1}}, {move,{y,0},{x,0}},
{move,{x,1},{y,0}}+) is loaded at address 0x1000:
that the code (`+{move,{x,0},{x,1}}, {move,{y,0},{x,0}},
{move,{x,1},{y,0}}+`) is loaded at address 0x1000:


-------------------------------------------
Expand Down

0 comments on commit 1b4b71d

Please sign in to comment.