Comments (2)
yes, you should never count bytes manually.
sjasmplus has two main modes:
a) raw output (--raw
or OUTPUT
), where ORG
does affect how label values are assigned and jumps/calls calculated, but padding bytes must be emitted, for example with DS
:
ORG 0
; rst 0x00 handler
di
;..
DS 0x20-$, 0 ; output nops (value 0) until address 0x20
; rst 0x20 handler
ret
DS 0x66-$, 0 ; nops until 0x66
; rst 0x66 handler
retn
b) virtual device mode, where ORG
does redirect following assembling to desired address, and you can save "current" state of virtual memory by SAVEBIN
/SAVEDEV
/SAVESNA
/SAVETAP
/... directives, ie.:
DEVICE AMSTRADCPC6128
ORG 0x00
di
;...
ORG 0x20
; ...
ORG 0x66
; ...
SAVEBIN "code.bin", 0x0000, 0x400 ; without 0x38 handler below (!)
ORG 0x38
di
; ...
SAVEBIN "code38.bin",0x0000,0x400 ; current memory -> this file contains also 0x38 handler
from sjasmplus.
Thank you!
from sjasmplus.
Related Issues (20)
- make "Unrecognized option" message error-like, to be harder to overlook, and affect exit code as well
- allow defining custom Devices
- Building on Alpine Linux fails due to clash with constant in musl limits.h HOT 1
- SAVETAP: codeblock of 166 bytes length starting at 0xFF59 saved to .tap HOT 2
- Typo on warning
- [1.20.1][ubuntu 22.04][mingw-w64] Can't compile windows exe without modifying Makefile // Recommendation in Makefile is also not full
- Allow multiple labels as arguments of IFUSED HOT 3
- Interest in adding a new Z80 device ? VZ200/Laser210 HOT 3
- Incorrect compilation of DC with one symbol in single quotes HOT 5
- Not everything works after return from snapshot to Basic HOT 2
- Arrow keys and ESC don't work after invoking sjasmplus HOT 5
- Tests may fail due to locale settings
- duplicate lables HOT 1
- get include length size HOT 2
- bplist: MAME support HOT 1
- union HOT 1
- lua block parsing inside macro is not aware of being inside lua block, applying sjasmplus parsing rules (colons!) HOT 1
- Concern about instructions like add a,b HOT 4
- Missing FAKE INSTRUCTIONS like "ex bc, hl" and other combinations that exploit "ex (sp), rr" HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sjasmplus.