Skip to content

Commit

Permalink
fix docs
Browse files Browse the repository at this point in the history
  • Loading branch information
hlorenzi committed Jun 7, 2018
1 parent 78ed5b7 commit dc712db
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
10 changes: 5 additions & 5 deletions doc/cpudef.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,14 @@ The size of each instruction's binary representation must be
some multiple of the byte size. So, with 8-bit bytes, valid
instruction sizes are 8 bits, 16 bits, 24 bits, and so on.

- `#labelalign <value>`
- `#labelalign <value>`
Whenever a label is defined in the source code, the assembler will
align the current address to be a multiple of this value. Equivalent
of using `#align` before every label.
align the current address to be a multiple of this value.
Equivalent to using `#align` before every label.

- `#tokendef <name>`
- `#tokendef <name>`
Creates a group of tokens with associated values, which can
be used in place of arguments (e.g. for named registers).
be used in place of arguments (e.g. for named registers).
See below for usage in parameters, and check the example at
the bottom of the page. Syntax is as follows:
```asm
Expand Down
22 changes: 11 additions & 11 deletions doc/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -199,9 +199,9 @@ First, define one or more banks as follows:
```asm
#bankdef "mybank"
{
#addr 0x8000
#size 0x4000
#outp 0x10
#addr 0x8000
#size 0x4000
#outp 0x10
}
```

Expand Down Expand Up @@ -232,10 +232,10 @@ If you define a bank with a `#fill` attribute such as the following:
```asm
#bankdef "mybank"
{
#addr 0x8000
#size 0x4000
#outp 0x10
#fill
#addr 0x8000
#size 0x4000
#outp 0x10
#fill
}
```

Expand Down Expand Up @@ -318,8 +318,8 @@ to derive it:

```asm
helloworld:
#str "Hello, world!\0"
#str "Hello, world!\0"
helloworldLen = pc - helloworld
```

Expand All @@ -330,10 +330,10 @@ of the given value, but does nothing if it already is.

```asm
#d8 0xff
#align 4
loop:
jmp loop
jmp loop
```

...would be assembled to:
Expand Down

0 comments on commit dc712db

Please sign in to comment.