Code Monkey home page Code Monkey logo

k65's People

Contributors

krzysiek-k avatar traqpl avatar zbyti avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

k65's Issues

variable declaration problem

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

Backslash in data block cause segmentation fault under linux

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.

CLV case

for syntax consistency, it is worth changing o- to v-

Evaluator and binary numbers case

The evaluator does not work with binary numbers but does not report this during compilation.

[
  FOO_MASK = 0b0101
]

gives 0 instead 5

*<number> for 1

*1

Aborted (core dumped)

*2

NOP

*3

04        ???
80        ???

*4

NOP
NOP

*5

04        ???
80        ???
ea        NOP

*6

NOP
NOP
NOP

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.