krzysiek-k / k65 Goto Github PK
View Code? Open in Web Editor NEWK65 - a custom assembler for 6502-based CPUs
K65 - a custom assembler for 6502-based CPUs
var PUTC=0xF001, GETC=0xF004
var tmp=0, hex_number[4], word[2]?
var dec_digit=0[5], tmp_word=7[2]?
doesn't compile
var PUTC=0xF001, GETC=0xF004
var tmp=0, hex_number[4], word[2]?
var dec_digit=0[5], tmp_word=7[2]
doesn't compile
var PUTC=0xF001, GETC=0xF004
var tmp=0, hex_number[4], word[2]?
var dec_digit=0[5]
var tmp_word=7[2]?
doesn't compile
var PUTC=0xF001, GETC=0xF004
var tmp=0, hex_number[4], word[2]?
var dec_digit=0[5]
var tmp_word=7[2]
compile
Under linux when \
backslash is used in paths in data
block it causes Segmentation fault during compilation.
Code to reproduce error:
data map1_pf0_0 {
align 256
image "data\map2" 3 255 4< 256^
}
Result (console output):
/home/mgo/Projects/demoscene/tools/k65/workdir/k65.exe @files.lst
K65 compiler, version 0.2.1, build Oct 26 2020 14:45:21.
Copyright (C) 2012-2020 Krzysztof Kluczek ( devkk.net ).
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Executing script: /home/mgo/Projects/demoscene/tools/k65/workdir//system.nut
Executing script: /home/mgo/Projects/demoscene/tools/k65/workdir//system_a2600.nut
Compiling file: _defs.k65 ...
Compiling file: util.k65 ...
Compiling file: maps.k65 ...
make: *** [makefile:15: main] Segmentation fault (core dumped)
It breaks portability of code between windows and linux. As windows support slashes /
(however didn't test it with k65, this is just assumption that this will work) in paths maybe it is and idea to state it specifically that it is important to use /
for portability in paths.
for syntax consistency, it is worth changing o-
to v-
[
LSN = 0b00001111
MSN = 0b11110000
]
compiles but has invalid values
i!!
d!!
c!!
works, n!!
v!!
b!!
works not
inline break {
data { 0 }
}
doesn't compile
The evaluator does not work with binary numbers but does not report this during compilation.
[
FOO_MASK = 0b0101
]
gives 0
instead 5
*1
Aborted (core dumped)
*2
NOP
*3
04 ???
80 ???
*4
NOP
NOP
*5
04 ???
80 ???
ea NOP
*6
NOP
NOP
NOP
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.