Skip to content

Commit

Permalink
impl additional pseudo instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
mseminatore committed Jun 10, 2024
1 parent 0ccbc26 commit 0a97552
Show file tree
Hide file tree
Showing 5 changed files with 670 additions and 613 deletions.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,17 +46,20 @@ And there are some new, more modern, assembler features that are not present in

- Labels require a following ':'
- Additional pseudo-instructions
- Additional operators
- Additional c-style expression operators

## Assembler extensions

as09 adds several optional instruction extensions for convenience. They are:

Mnemonic | Description
-------- | -----------
ASLD | equivalent to ASLB followed by ROLA
ASRD | equivalent to ASRA followed by RORB
BNZ | equivalent to BNE
BZ | equivalent to BEQ
CLRC | Clear carry flag, equivalent to ANDCC #$FE
CLRD | equivalent to CLRA followed by CLRB
CLRZ | Clear zero flag, equivalent to ANDCC #$FC
FCZ string | Declares a null terminated string
INCLUDE string | Includes file in assembly
Expand Down
2 changes: 1 addition & 1 deletion as09.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
// constant decls
//-----------------
#define APP_NAME "as09"
#define APP_VER "0.5.0"
#define APP_VER "0.5.1"

#define DONE 0

Expand Down
Loading

0 comments on commit 0a97552

Please sign in to comment.