Comments (4)
Define Constant Byte doesn't work for you?
from dasm.
I have defined a constant with a value equal to $55 in my emulator, which is a debugging instruction. Then, when I embed this constant into the program and compile using dasm, the following error will occur:
BMAN. s (8): error: Unknown Mnemonic 'DEBUG'
BMAN. s (18): error: Unknown Mnemonic 'DEBUG'
DEBUG EQU $ff
RESET:
SEI; Reset PPU Disable NMI, turn off background and sprites
LDA # 0
STA PPU_ CTRL_ REG2
STA PPU_ CTRL_ REG1
CLD; The NES 6502 CPU has no BCD mode, reset the flag just in case
LDX # $FF; Set the stack pointer to the initial position
TXS
DEBUG
from dasm.
from dasm.
A macro is nice and clean, but you shouldn't need it for one line. Just use the equate and make sure the DC.B is not in coilumn 1.
DEBUG EQU is not the same and DC.B.
Assuming DEBUG isn't a reserved word
DEBUG EQU $FF
DC.B DEBUG
would also work. Whichever you prefer.
from dasm.
Related Issues (20)
- invalid (?) "#" usage HOT 1
- Allow expressions access to generated code
- dasm not open on my windows HOT 1
- Error (?) with dynamic labels HOT 2
- Feature request: ability to specify exit code with ERR directive HOT 3
- Macros detects parameters in the false portion of #if/#else/#endif and IF/ELSE/ENDIF directives
- Hide LIST ON HOT 1
- Undefined values cause no errors
- Assembled output padded with 00 bytes HOT 2
- Support for 'mul' instructions on for 68HC705 HOT 5
- SEGV in error handling of command line parameters
- atari 2600 "macro.h": SLEEP macro causes unwanted bankswitching with some cartridge types (e.g. 3F) HOT 1
- 6502 addressing modes (indirect),Y and absolute,Y should support space between comma and Y
- Support for #elif directive
- [REQUEST] Add ".PROCESSOR 65C02" Mode and Opcodes HOT 2
- Dynamic labels are not working in an expression HOT 3
- Installation via Scoop HOT 1
- Apple ARM Support HOT 3
- vcs.h redistribution HOT 3
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 dasm.