Search found 346 matches

by backspace119
Fri Mar 29, 2019 6:26 pm
Forum: Newbies
Topic: 65XX SBC general help and color display help needed
Replies: 429
Views: 44894

Re: 65XX SBC general help and color display help needed

So, quick question, I'm using some leftover push buttons for a simple user input board. I've got 9 of them, and I've arranged them into 3x3 rows and columns. My plan is to do a matrix keyboard here, and I'd like to set up some hardware debounce to simplify initial software for them (although I will ...
by backspace119
Fri Mar 29, 2019 6:23 pm
Forum: Programming
Topic: New 65XX Assembler on the block
Replies: 35
Views: 4154

Re: New 65XX Assembler on the block

I definitely want to support make files in the future, but I also want to allow the use of the program on its own to do start to finish compilation of a set of files to assembled binary. Presently, I'm not even respecting file extensions really, just leaving things .txt and editing them with notepad ...
by backspace119
Fri Mar 29, 2019 2:55 pm
Forum: Newbies
Topic: 65XX SBC general help and color display help needed
Replies: 429
Views: 44894

Re: 65XX SBC general help and color display help needed

So I haven't been back to this thread for a bit, thought I'd post a bit of status on the project.

I wrote the display driver, and have the RTC working, so last night I got the display showing the current time and date:

time_and_date.jpg

(the month was set wrong in the image, I fixed that ...
by backspace119
Fri Mar 29, 2019 2:52 pm
Forum: Programming
Topic: New 65XX Assembler on the block
Replies: 35
Views: 4154

Re: New 65XX Assembler on the block

I may allow linkage to be separated out. Presently, all assembly is done in "stages" each stage is a singleton, but expects the input to be from the previous stage, meaning some stages might crash if given input that has not been run through the prior stages first. Although the way that I'm doing it ...
by backspace119
Thu Mar 28, 2019 8:21 pm
Forum: Programming
Topic: New 65XX Assembler on the block
Replies: 35
Views: 4154

Re: New 65XX Assembler on the block

There's a bug with .includes in the current release, and bugs with .ML as well, and a couple other issues, I have them fixed locally, and I'll push once I have a few other things done. Is there anything specific that I should be focused on adding? I know that assemblers exist and people aren't ...
by backspace119
Thu Mar 28, 2019 4:41 am
Forum: Programming
Topic: New 65XX Assembler on the block
Replies: 35
Views: 4154

Re: New 65XX Assembler on the block

I just pushed a new release, v 0.0.4, added quite a few nice things to it, and I really think it's beginning to mature a bit. I've used it to successfully compile the display driver I've been working on, along with some other programs. My next goal with it is to fix the issue with DP detection, and ...
by backspace119
Tue Mar 26, 2019 10:35 am
Forum: Programming
Topic: New 65XX Assembler on the block
Replies: 35
Views: 4154

Re: New 65XX Assembler on the block

I'm actually checking for direct addressing mode, I was following the syntax found here


On the '816 the direct page is can start at any address in bank 0 so you can have code like this ...

; These routines expect the caller to have set $DF00 as the direct page address
; so that direct-page ...
by backspace119
Mon Mar 25, 2019 5:41 pm
Forum: Programming
Topic: First build 65c816 based machine programming
Replies: 28
Views: 2050

Re: First build 65c816 based machine programming

As promised. The surprise is here:
IMG_20190325_133926.jpg
EDIT: sorry for rotation, and bad quality, my phone apparently didn't like my surprise
by backspace119
Mon Mar 25, 2019 1:11 pm
Forum: Programming
Topic: New 65XX Assembler on the block
Replies: 35
Views: 4154

Re: New 65XX Assembler on the block

I have now successfully run a sort of complicated program through it, found out the reason it wasn't working was I mixed up 8D and 8F (STA abs and STA long). I'm so close to having this do something cool, I can feel it.

EDIT: sort of wrong thread, but related to my assembler, so w/e
by backspace119
Mon Mar 25, 2019 12:15 pm
Forum: Programming
Topic: New 65XX Assembler on the block
Replies: 35
Views: 4154

Re: New 65XX Assembler on the block

And I just found out why certain programs weren't working.

I made a dumb mistake and was treating JSR like BRL, with relative addressing.

Now that that's fixed, my emulation mode light blinks with this program compiled with my assembler:


.m8
.x8
ST:
SEI
CLC
XCE
JSR WASTETIME
SEC
XCE
JSR ...
by backspace119
Mon Mar 25, 2019 11:56 am
Forum: Programming
Topic: New 65XX Assembler on the block
Replies: 35
Views: 4154

Re: New 65XX Assembler on the block

EDIT: I see that ca65 supports straight assembly too....not sure why I didn't find this listed on the page about assemblers, or maybe I over looked it. I sorted them by searching for 65816 or 65c816 to only get the ones that were capable of assembling for this cpu. At any rate, I'm still having a ...
by backspace119
Mon Mar 25, 2019 11:52 am
Forum: Programming
Topic: New 65XX Assembler on the block
Replies: 35
Views: 4154

Re: New 65XX Assembler on the block

Great project - thanks for open-sourcing it!

Because the '816 is so stateful, it's probably best to have both
- directives to say what the state is (or should be!)
- heuristics to follow state changes

As for adding octal - is binary already in there?

Yes, binary is in there, and I got octal ...
by backspace119
Mon Mar 25, 2019 11:51 am
Forum: Programming
Topic: New 65XX Assembler on the block
Replies: 35
Views: 4154

Re: New 65XX Assembler on the block

Typo in Assembler.java line 19 'OCATL_PATTERN'.

Checking for direct page addresses with expressions like ...

if(replaceHex(line) > 0xFF)
{
return standard2(0x84,line);
}else {
return standard3(0x8C,line);
}

... doesn't really work for the '816 as the direct page does not have to be at ...
by backspace119
Mon Mar 25, 2019 4:53 am
Forum: Programming
Topic: New 65XX Assembler on the block
Replies: 35
Views: 4154

Re: New 65XX Assembler on the block


I built this assembler out of frustration trying to use other ones that are available, since most do not work on modern operating systems or have quirks that make them odd to use.

ca65, part of the cc65, is pretty robust and portable. It's just plain C, and compiles in seconds at least on Mac ...
by backspace119
Mon Mar 25, 2019 3:21 am
Forum: Programming
Topic: New 65XX Assembler on the block
Replies: 35
Views: 4154

Re: New 65XX Assembler on the block

New version 0.0.2

Octal notation numbers are now supported format is o123 or 123O (case insensitive)