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
- Host: GitHub
- URL: https://github.com/demesos/LAMAlib
- Owner: demesos
- License: unlicense
- Created: 2019-10-26T09:57:02.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-06-05T21:47:27.000Z (26 days ago)
- Last Synced: 2024-06-06T00:33:15.314Z (26 days ago)
- Language: Assembly
- Size: 1.08 MB
- Stars: 9
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Lists
- 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)