Coder Social home page Coder Social logo

64bites / 64spec Goto Github PK

View Code? Open in Web Editor NEW
55.0 55.0 10.0 278 KB

6502/Commodore64 Testing Framework for KickAssembler

Home Page: http://64bites.com/64spec/

License: MIT License

Assembly 100.00%
6502 assembly-6502 assembly-language commodore-64 kickassembler tdd testing

64spec's People

Contributors

mehowte avatar mikekeith avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

64spec's Issues

Kick Assembler 4.7: compilation fails

Hi,
This is the error I get when I try to compile 64spec with kickass 4.7

//------------------------------------------------------
//------------------------------------------------------
//       Kick Assembler v4.7 by Mads Nielsen
//------------------------------------------------------
//------------------------------------------------------
parsing
Got 140 errors while parsing:
  (64spec.asm 157:68) Syntax error
  (64spec.asm 157:3) If without body
  (64spec.asm 158:86) Syntax error
  (64spec.asm 158:3) If without body
  (64spec.asm 159:73) Syntax error
  ...

.eval _64SPEC.set("_use_custom_assertion_failed_subroutine", false)

.function config_64spec(key, value) {
  .if (validate_boolean_option("print_header", key, value)) .return
                                                                   ^
Error: Syntax error
at line 157, column 68 in 64spec.asm

64Spec Is Not Compiling with KA > 4.6

Not sure if it is the newer versions of KA causing the issue, but many of the functions are not compiling due to the face that there are no VALUES on the .return clause. Main culprit seems to be in the function config_64spec.

I don't think that KA has a requirement for a value to be returned from a function?

Here is a sample of a compile from KA 4.8

Do you think I should open a error with Mads on KA?

> kickass 64spec.asm
//------------------------------------------------------
//------------------------------------------------------
//          Kick Assembler v4.8 by Mads Nielsen
//------------------------------------------------------
//------------------------------------------------------
parsing
Got 322 errors while parsing:
  (C:\Development\Workspace\6502\kickass-vscode-testing\64spec.asm 157:68) Syntax error
  (C:\Development\Workspace\6502\kickass-vscode-testing\64spec.asm 157:3) If without body
  (C:\Development\Workspace\6502\kickass-vscode-testing\64spec.asm 158:86) Syntax error
  (C:\Development\Workspace\6502\kickass-vscode-testing\64spec.asm 158:3) If without body
  (C:\Development\Workspace\6502\kickass-vscode-testing\64spec.asm 159:73) Syntax error
  ...

.eval _64SPEC.set("_use_custom_assertion_failed_subroutine", false)

.function config_64spec(key, value) {
  .if (validate_boolean_option("print_header", key, value)) .return
                                                                   ^

Error: Syntax error
at line 157, column 68 in 64spec.asm

64spec does not compile with KA >=5.1

This is most likely due to following changes in 5.1:

11/11-2018 : New release (v5.1):
Escape chars (\b\f\n\r\t\") and hex values ($xx) in strings when using @. Eg: .text @"Hello world$ff"
Compatebility: Plain strings (strings without @) are now escape code free. (using " no longer works)

The following output is generated by KA:

//------------------------------------------------------
//------------------------------------------------------
// Kick Assembler v5.1 by Mads Nielsen
//------------------------------------------------------
//------------------------------------------------------
parsing
Got 8 errors while executing:
(C:\prj\cbm\c64lib\64spec\lib\64spec.asm 191:27) Syntax error
(C:\prj\cbm\c64lib\64spec\lib\64spec.asm 197:27) Syntax error
(C:\prj\cbm\c64lib\64spec\lib\64spec.asm 208:57) Syntax error
(C:\prj\cbm\c64lib\64spec\lib\64spec.asm 221:46) Syntax error
(C:\prj\cbm\c64lib\64spec\lib\64spec.asm 231:46) Syntax error
...

.if (validate_non_empty_string_option("result_file_name", key, value)) .return null

.if (validate_set_option("change_character_set", List().add(
_64SPEC_SET_OPTION("\"lowercase\"", "lowercase"),
^

Error: Syntax error
at line 191, column 27 in C:\prj\cbm\c64lib\64spec\lib\64spec.asm

Link to failing build: https://travis-ci.org/c64lib/common/builds/459738499

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.