Giter Club home page Giter Club logo

bsa's People

Contributors

dansanderson avatar edilbert 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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

bsa's Issues

License

Hi! Can you add some statement about the license under which you're distributing this? For example MIT, BSD, GPL...
Thanks.

Some points to possible enhancements

Danke. Sehr interessant.
Warum man >2000 Zeilen C Code schreiben kann, aber keine 20 Zeilen readme.txt entzieht sich allerdings meinem Verständnis :-(
Das am Anfang des C Sourcecodes vieles steht ist gut!

Aber gerade .STORE ist da angegeben mit:
.STORE BASIC_ROM,$2000,"basic.rom" write binary image file "basic.rom"

Aber erst nach dem Studium des Quelltextes, kann ein C Sourcecode Leser sehen:
char *ParseStoreData(char *p)
{
int Start,Length,i;
char Filename[80];

if (Phase < 2) return p;
p = EvalOperand(p,&Start,0);
if (Start < 0 || Start > 0xffff)
{
ErrorMsg("Illegal start address for STORE %d\n",Start);
exit(1);
}
p = NeedChar(p,',');
if (!p)
{
ErrorMsg("Missing ',' after start address\n");
exit(1);
}
p = EvalOperand(p+1,&Length,0);
if (Length < 0 || Length > 0x10000)
{
ErrorMsg("Illegal length for STORE %d\n",Length);
exit(1);
}
p = NeedChar(p,',');
if (!p)
{
ErrorMsg("Missing ',' after length\n");
exit(1);
}
p = NeedChar(p+1,'"');
if (!p)
{
ErrorMsg("Missing quote for filename\n");
exit(1);
}

=> d.h.:
;.STORE ,,"filename"
.STORE $280,$100,"out.bin"

Dabei MUSS man eine Länge angeben - für Eproms sicher ok. Für raw binare aber blöd.
Hier fehlt ein Parameter, der als Platzhalter für die Filelänge dient!

Genauso die Startadresse - kann mal doch aus der ORG / * = Anweisung nehmen..
(z.B. -1 für beide = Start aus org/*= oder 0 und Länge = Binärlänge)

Noch ein weiterer Punkt. Source muss zwingend .asm heißen.
Stört nicht, muss man aber wissen und finde ich blöd.

Ansonsten schöner Assembler!

LG Peter

strncasecmp / strcasecmp "non standard"

hi,

i am trying to compile BSA for windows (using Pelles C development kit for Desktop Windows (it is free)).

I have trouble because of strncasecmp / strcasecmp.

Doing a quick research, it is said, they are defined in the libc standard library in BSD/POSIX but they are "non standard" (ansi c?).

I was able to compile it with

#ifdef _WIN32
#define strcasecmp _stricmp
#define strncasecmp _strnicmp
#endif

Just found a compile option "Define compatibility names" which also works. If someone is interesting, screenshot:

2019-07-20 07_35_50-bsa project options  Release  - Win32 Console program (EXE)

Quite often, bsa is not woking

The reason should be line 3332:

Src = MallocOrDie(strlen(argv[ic] + 4 + 1));

I guess you mean

Src = MallocOrDie(strlen(argv[ic]) + 4 + 1);

With this fix, BSA is working much better on windows.

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.