0 Members and 1 Guest are viewing this topic.
;To increase the pointer in HL, just call IncPointer;For slightly faster throughput, use: inc l \ call z,IncPointerMSBIncPointer: inc l ret nzIncPointerMSB: inc h ret po push af in a,(6) inc a out (6),a ld a,h sub $40 ld h,a pop af ret
KERNELauto-detection of sources/includes locations (ram/flash)sources/includes reading directly from flashbasic directivescan locate the matching equate definition from its callcan locate the matching macro definition from its call (even if it has some custom parameters)complex token strings conversion (multiple bases and arithmetic operators mixed in a single expression)
I see one advantage this has over mimas: Tokens are smaller than straight ASCII, if you use the commands, not just letters. If you just use the tokens for space, A-z and numbers, then it will use more, I think. Plus, it's not like it hurts to have multiple progs available for the same purpose.May I recommend having a marker at the beginning of the file, that makes it invalid as BASIC, and makes your assembler able to see it? just a thought.
The word "mimas" seems to be quite redundant around =]
hey there...I'm quite new to these forums but i thought it would be nice to share the thing around :A few weeks ago, i digged out a project that was sleeping for too long.It's called "asmdream" and is, in fact, an (other) on-calc asm compiler for the 8X+ series.So, nothing revolutionnary, but it has its particularities (wanted to make something new).The main challenge here was to make it able to convert token-based sources directly into machine code.For the ease of use, i was forced to define a simplified syntax because of the large font usage and lack of readability of the tios prgm editor.But don't worry, i made it very instinctive so we're not so far from tasm.It is supposed to handle, at least :- all z80 instructions (undocumented included)- includes- labels- equates (nesting allowed)- macros with parameters (nesting allowed)- bases conversions : binary/decimal/hexadecimal/ascii/token- arithmetic operators : positive/negative/addition/substraction- read from flash (sources/includes)For obvious reasons, i do my best to optimize it in favor of space (about 2K for now) but i'm still amazed how fast it does the job.I work on it many hours per day but it's still hard to tell when it'll see the light (progress maybe around let's say... 50%).I'll use this thread to post news and (hope not) ask for help.Also, don't hesitate if you've some questions/suggestions.cu around =]