Mike Kohn's naken_asm
Re: Mike Kohn's naken_asm
Finally sorted it out, now it uses zp, zpx, zpy for 0-255 but checks to make sure that an instruction is actually available for those modes. If not, then it assumes a 2-byte mode ensuring the passes line up.
So it should work as expected now. Thanks a lot for the suggestions.
So it should work as expected now. Thanks a lot for the suggestions.
Re: Mike Kohn's naken_asm
I have re-written the 6502 assembler, and added a new one for the 65816. Traditional syntax is supported where possible, but there are some limitations. (The most glaring omission is lack of % for binary.)
A documentation project has been started (still working on '02/'816 docs):
https://github.com/mikeakohn/naken_asm/tree/master/docs
A documentation project has been started (still working on '02/'816 docs):
https://github.com/mikeakohn/naken_asm/tree/master/docs
- BigDumbDinosaur
- Posts: 9428
- Joined: 28 May 2009
- Location: Midwestern USA (JB Pritzker’s dystopia)
- Contact:
Re: Mike Kohn's naken_asm
joe7 wrote:
(The most glaring omission is lack of % for binary.)
x86? We ain't got no x86. We don't NEED no stinking x86!
Re: Mike Kohn's naken_asm
BigDumbDinosaur wrote:
Are you working toward implementing binary notation?
- BigDumbDinosaur
- Posts: 9428
- Joined: 28 May 2009
- Location: Midwestern USA (JB Pritzker’s dystopia)
- Contact:
Re: Mike Kohn's naken_asm
joe7 wrote:
BigDumbDinosaur wrote:
Are you working toward implementing binary notation?
x86? We ain't got no x86. We don't NEED no stinking x86!
- GARTHWILSON
- Forum Moderator
- Posts: 8774
- Joined: 30 Aug 2002
- Location: Southern California
- Contact:
Re: Mike Kohn's naken_asm
The assemblers I've used also allow the trailing "B" for "binary" or "H" for "hex," for example AND #10100101B or AND #A5H, just as they would accept AND #%10100101 or AND #$A5. Radix has to be set for decimal of course so the "B" does not get mistaken for a hex digit like it would if Radix were set to hex. A trailing "O" for "octal" might require more careful looking to avoid confusing it with a zero, but I have never had any reason to use octal. Ever.
http://WilsonMinesCo.com/ lots of 6502 resources
The "second front page" is http://wilsonminesco.com/links.html .
What's an additional VIA among friends, anyhow?
The "second front page" is http://wilsonminesco.com/links.html .
What's an additional VIA among friends, anyhow?
Re: Mike Kohn's naken_asm
I think it ignores whitespace (like a C compiler would). Probably not much I can do, but I thought I should mention the quirk.
You can do these currently (need to update docs):
You can do these currently (need to update docs):
Code: Select all
0b11001100
11001100b
0x4444
4444h
$4444
- BigDumbDinosaur
- Posts: 9428
- Joined: 28 May 2009
- Location: Midwestern USA (JB Pritzker’s dystopia)
- Contact:
Re: Mike Kohn's naken_asm
GARTHWILSON wrote:
...but I have never had any reason to use octal. Ever.
Supermon 816 accepts octal values, as well as binary, decimal and hex. For example, the operand @077 would be evaluated as octal.
x86? We ain't got no x86. We don't NEED no stinking x86!
Re: Mike Kohn's naken_asm
I've added a disassembler for 65816, mainly because that module is needed for list file generation (-l option in the assembler). I'll also need it for the simulator display when I get around to that. In those roles, the number of storage bytes can be known, but for now 16-bit register sizes are assumed if used as a normal disassembler.
The WDC guidelines have aliases for some things, as well as one and two byte results for the byte selection operators > < and ^. I could support those things, but are they that important?
I don't think % for binary is going to work out, but otherwise I think all of the traditional syntax is implemented. Which never was mandatory for this project, but it would have been nice to have my cake and eat it too.
The WDC guidelines have aliases for some things, as well as one and two byte results for the byte selection operators > < and ^. I could support those things, but are they that important?
I don't think % for binary is going to work out, but otherwise I think all of the traditional syntax is implemented. Which never was mandatory for this project, but it would have been nice to have my cake and eat it too.
- barrym95838
- Posts: 2056
- Joined: 30 Jun 2013
- Location: Sacramento, CA, USA
Re: Mike Kohn's naken_asm
joe7 wrote:
... The WDC guidelines have aliases for some things, as well as one and two byte results for the byte selection operators > < and ^. I could support those things, but are they that important?
Mike B.
Re: Mike Kohn's naken_asm
I suppose, Mike, you're saying that a project with some non standard syntax or missing important features is good for the person who built the project, but probably not good for a general audience?
Re: Mike Kohn's naken_asm
BigEd wrote:
I suppose, Mike, you're saying that a project with some non standard syntax or missing important features is good for the person who built the project, but probably not good for a general audience?
I won't be posting here anymore, but thanks for having me.
Re: Mike Kohn's naken_asm
Goodness me, Joe7, don't do that! It's always better when we see encouragement here rather than the opposite, but do note that I could easily have misunderstood what Mike meant.
And consider, if just one interaction can push a person away from a whole community, how could any community possibly survive?
And consider, if just one interaction can push a person away from a whole community, how could any community possibly survive?
Re: Mike Kohn's naken_asm
Is this a case where a message has gotten misinterpreted due the written medium's lack of cues from tone and body language? I suppose it's bound to happen from time to time. (Myself, I find nothing offensive about Ed's query, or about Mike's answer to the question that was posed).
-- Jeff
-- Jeff
In 1988 my 65C02 got six new registers and 44 new full-speed instructions!
https://laughtonelectronics.com/Arcana/ ... mmary.html
https://laughtonelectronics.com/Arcana/ ... mmary.html
- GARTHWILSON
- Forum Moderator
- Posts: 8774
- Joined: 30 Aug 2002
- Location: Southern California
- Contact:
Re: Mike Kohn's naken_asm
Dr Jefyll wrote:
Myself, I find nothing offensive about Ed's query, or about Mike's answer to the question that was posed
http://WilsonMinesCo.com/ lots of 6502 resources
The "second front page" is http://wilsonminesco.com/links.html .
What's an additional VIA among friends, anyhow?
The "second front page" is http://wilsonminesco.com/links.html .
What's an additional VIA among friends, anyhow?