Jump to content

Assembler Programming


KIM-1
 Share

Recommended Posts

Hi,

Apologies if this is in an FAQ or some other obvious place - I just learned of your project and I have one question: do you suppoort software written in assembler/"bare-metal" development (i.e.raw access to hardware and peripherals)?

My first computer was a KIM-1, which was CMOS 6502-based, and I'm very excited to see what happens!

Edited by KIM-1
  • Like 1
Link to comment
Share on other sites

3 minutes ago, x16tial said:

Yes, very much so.  There will be an assembly environment, and the reference guide details how to call kernal functions from assembly.  There also a number of cross assemblers that will target the 65c02/x16.

"Will be" - so it is yet to be developed, or...?

I'll download the emulator. Is that only a subset of the system, or can it do everything the real unit will be expected to be able to do?

Link to comment
Share on other sites

30 minutes ago, KIM-1 said:

I have one question: do you suppoort software written in assembler/"bare-metal" development (i.e.raw access to hardware and peripherals)?

This is one of the main goals of the X16 platform. While development in languages like C is possible, in many cases it is more difficult than simply writing programs in assembly. As a result, many of the programs that have been written for the system are in assembly.

11 minutes ago, KIM-1 said:

"Will be" - so it is yet to be developed, or...?

The official assembler that will run on the system is still being developed. However, cross-development tools like ca65 (which is being used to write the ROMs) are just as usable as they are for other 6502 systems.

13 minutes ago, KIM-1 said:

Is that only a subset of the system, or can it do everything the real unit will be expected to be able to do?

I believe a few features (e.g. VIA timers) are still missing, but enough of the system is currently emulated that complex programs (such as those available on the Downloads page) can be written.

 

Link to comment
Share on other sites

2 hours ago, Elektron72 said:

I believe a few features (e.g. VIA timers) are still missing,

This one gets me - there are a few things I'd like to do using intervals != 60Hz, and the VIA would be the way to go on that front. So far, the cleverest thing I've seen is what Concerto does. It uses the DSP FIFO low IRQ as a timer by writing in however many samples it would take to create a desired delay - and when the DSP drains out enough samples, it throws an IRQ. Concerto actually has the DSP muted because it's not using PCM audio at all. When I saw that, it was definitely a "press 'F' in chat to pay respects" moment for me.

  • Like 2
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...

Important Information

Please review our Terms of Use