Skip to content

Latest commit

 

History

History
24 lines (13 loc) · 473 Bytes

README.md

File metadata and controls

24 lines (13 loc) · 473 Bytes

asm6

Fork of asm6 by Loopy with minor changes

This small fork generates absolute addressing opcodes for four-digit ZP addresses (like $0092).

Also added support for argument prefix (a:), that forcing absolute addressing instead of ZP.

Example 1: sta $0092

Original asm6 produces: 85 92

This fork produces: 8D 92 00

Example 2: sta a:$92

Same result.

Example 3: sta a:Variable

Also it fixes warning.

Build easily with command:

gcc asm6.c -o asm6.exe