Search found 395 matches

by Bill B
23 Jul 2022 21:27
Forum: PROGRAMMING
Topic: MTXLib
Replies: 6
Views: 8761

MTXLib

I have started a new thread for this, so that I can have the first topic, which I can keep updated with any revisions, where they can be easily found. This is a follow up of a request from Jim for an easy environment in which to develop programs for the MTX using C. In response I suggested using the...
by Bill B
07 Jul 2022 17:27
Forum: PROGRAMMING
Topic: Latest on C dev for the MTX SDCC etc,
Replies: 31
Views: 20293

Re: Latest on C dev for the MTX SDCC etc,

More interrupt fun and games. It turns out that the way MEMU emulates the Z80 HALT instruction was breaking the way the execution speed is controlled. :( Although MEMU normally attempts to run at a realistic speed, it only does so on average. Individual Z80 instructions do not take the correct amoun...
by Bill B
05 Jul 2022 21:47
Forum: PROGRAMMING
Topic: Latest on C dev for the MTX SDCC etc,
Replies: 31
Views: 20293

Re: Latest on C dev for the MTX SDCC etc,

Kudos to Dave for finding the first bug :oops:

The count down in the pause routine was broken. New version attached.

I will also update the MTX_Projects zip file in the earlier post.
by Bill B
05 Jul 2022 14:57
Forum: PROGRAMMING
Topic: Latest on C dev for the MTX SDCC etc,
Replies: 31
Views: 20293

Re: Latest on C dev for the MTX SDCC etc,

Dave pointed out that Code::Blocks is capable of displaying context sensitive help. Thanks Dave. I have now provided context sensitive help for the MTXLib routines. To enable this: Replace the contents of "MTX_Projects\MTXLib\docs" with the contents of the attached "docs.zip". Op...
by Bill B
04 Jul 2022 22:10
Forum: PROGRAMMING
Topic: Latest on C dev for the MTX SDCC etc,
Replies: 31
Views: 20293

Re: Latest on C dev for the MTX SDCC etc,

On the subject of MEMU, during this development, I discovered a small issue. MEMU has a feature where you can specify a *,RUN file on the end of the command line, and MEMU will automatically load and run the file, without having to type USER RUN "FILENAME.RUN". I use this to automatically ...
by Bill B
04 Jul 2022 20:02
Forum: PROGRAMMING
Topic: Latest on C dev for the MTX SDCC etc,
Replies: 31
Views: 20293

Re: Latest on C dev for the MTX SDCC etc,

I have not tried to program or use Python as yet but it looks good Python is only used to convert the Intel Hex files produced by SDCC into MTX RUN files. I could instead have written a small program in C to do that, but then I would have to maintain separate versions for Windows and Linux. Using P...
by Bill B
03 Jul 2022 17:02
Forum: PROGRAMMING
Topic: Latest on C dev for the MTX SDCC etc,
Replies: 31
Views: 20293

Re: Latest on C dev for the MTX SDCC etc,

I now have something working that attempts to satisfy Jim's request. It uses: Python SDCC Code::Blocks Install all of the above, then download and unzip the attached MTX_Projects.zip. Instructions for using Code::Blocks to build MTX programs are in file "MTX_Projects\MTXLib\docs\codeblocks.html...
by Bill B
29 Jun 2022 12:23
Forum: PROGRAMMING
Topic: Latest on C dev for the MTX SDCC etc,
Replies: 31
Views: 20293

Re: Latest on C dev for the MTX SDCC etc,

Based on my conversions so far, the new convention is clearly better in some cases, and not quite so good in others. It is worth supporting the old convention for Linux users (like me) who just want to keep whatever version of SDCC is supplied with their distro, rather than upgrading to the latest v...
by Bill B
28 Jun 2022 22:40
Forum: PROGRAMMING
Topic: Latest on C dev for the MTX SDCC etc,
Replies: 31
Views: 20293

Re: Latest on C dev for the MTX SDCC etc,

I thought I was making some progress on this for Jim, but then I ran into a problem with SDCC. The Code::Blocks IDE provides reasonable support for SDCC, I made a small start on a library of C callable routines that reproduced a number of the BASIC commands. These are routines written in assembler m...
by Bill B
16 Jun 2022 23:02
Forum: PROGRAMMING
Topic: Latest on C dev for the MTX SDCC etc,
Replies: 31
Views: 20293

Re: Latest on C dev for the MTX SDCC etc,

That sounds like a lot of good ideas to me, the main area I struggle with is anything that needs lots of old style dos or unix/cpm type of commands typed in to compile and so forth. making that process as simple as possible makes it more accessible to the less skilled of us :-) Then you are looking...