aeriform-io / minicube64 Goto Github PK
View Code? Open in Web Editor NEW6502 fantasy console experiment / toy
6502 fantasy console experiment / toy
The disasm6502
function seems to be using unexpected labels at times. I've attached a simple program with some zeropage labels and instructions accessing them. The infinite loop is there so the disassembly can be seen in the debugger (tab). I've attached a screenshot of what I'm seeing as well.
I suspect something in the labellist
that to_label
uses is getting thrown off, but seeing a macro label in there is particularly odd.
include "64cube.inc"
ENUM $0
data db 4
flags db 1
value db 1
ENDE
org $200
Boot:
sei
ldx #$ff
txs
- jmp - ; loop so the following is visible in the debugger
lda data
nop
lda data+2 ; disassembles as "lda value"
nop
lda data+3 ; disassembles as "lda _addw"
nop
lda flags
nop
lda value
tax
The current binaries don't run on ARM devices (e.g. a Raspberry Pi). I've tested with the Linux one, but it most probably applies to all of them - that is, if the problem really lies in CPU architecture.
Trying to run it on an ARM device returns the following error:
bash: ./minicube: cannot execute binary file: Exec format error
In case it's due to architecture, is ARM support planned?
MC64 automatically generates a gif while running and saves on quit, however the colours are inverted.
RGB => BGR
MC64 automatically generates a gif while running and saves on quit, however only outputs black frames
MacOS presents with intermittent flickering to black while running
I can't seem to get enums to work completely, and the debugger shows them not populating in value assignments to them as should be expected.
Example program to demonstrate (should have 01 show up in $00):
include "64cube.inc"
;zero-page values
ENUM $0
testByte db 1
ENDE
;called once at start
org $200
sei
ldx #$ff
txs
lda #$2
sta VIDEO
;constant loop
Main:
jmp Main
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.