Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

https://github.com/demesos/LAMAlib

Lightweight Assembler MAcro library for cc65
https://github.com/demesos/LAMAlib

Last synced: 22 days ago
JSON representation

Lightweight Assembler MAcro library for cc65

Lists

README

        

# LAMAlib
## Lightweight Assembler MAcro library for cc65

Contains macros for 16 bit operations and easier screen output, for example:

```
.include "LAMAlib.inc" ; include LAMAlib macros
; this does not add extra code unless you use a function

ldax #$1234 ; load a 16 bit value into registers A/X
clc
adcax #$2345 ; add another 16 bit value
stax $C000 ; store result

set_cursor_pos 10,0
print "The result is ",($C000) ; print the result to the screen

poke 198,0 ; empty keyboard buffer
do
lda 198
loop while eq ; wait for pressed key
rts
```

Please find the full documentation here: [lamalibdoc.html](https://htmlpreview.github.io/?https://github.com/demesos/LAMAlib/blob/master/LAMAlibdoc.html)