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: 2 months ago
JSON representation
Lightweight Assembler MAcro library for cc65
- Host: GitHub
- URL: https://github.com/demesos/LAMAlib
- Owner: demesos
- License: unlicense
- Created: 2019-10-26T09:57:02.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2024-11-01T23:26:19.000Z (3 months ago)
- Last Synced: 2024-11-02T00:18:31.606Z (3 months ago)
- Language: Assembly
- Size: 776 KB
- Stars: 9
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-commodore-resources - LAMAlib - Lightweight Assembler MAcro library for cc65 (Development Tools)
README
# LAMAlib
## Lightweight Assembler MAcro library for cc65Contains 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 functionldax #$1234 ; load a 16 bit value into registers A/X
clc
adcax #$2345 ; add another 16 bit value
stax $C000 ; store resultset_cursor_pos 10,0
print "The result is ",($C000) ; print the result to the screenpoke 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)