Search found 272 matches
- Sun Apr 14, 2019 4:01 am
- Forum: Cross development tools
- Topic: Exact procedure for committing changes to the OSDK on SVN.
- Replies: 5
- Views: 7302
Exact procedure for committing changes to the OSDK on SVN.
Hello kitties, I will (very) soon (like, this Sunday ;)) have a few (very) small changes to the OSDK that I want to share with the community so before I do that I would like to be certain of the contribution procedure. ( Note: my goal is not to change that procedure, let us not discuss that, I just ...
- Sat Apr 13, 2019 4:16 pm
- Forum: Cross development tools
- Topic: OSDK 1.14 RC
- Replies: 25
- Views: 20458
Re: OSDK 1.14 RC
How fluffy! Thanks DBug. ;) I haz just installed it and am using it as my main compiler. Edit: added preliminary result below. Just compiled my test effect (100% C) and already getting better results with the OSDK 1.14 RC compared to 1.13. As you can see below: execution speed is higher (about 1/30 ...
- Sat Apr 13, 2019 1:38 am
- Forum: Cross development tools
- Topic: OSDK C compiler : are floats supported?
- Replies: 8
- Views: 9050
Re: OSDK C compiler : are floats supported?
Here is a much simpler program which exhibits the issue: #include <time.h> void main() { unsigned long clockValue; clockValue = clock(); //clockValue = 1; printf("clockValue : %d\n", clockValue); printf("clockValue*100 : %d\n", clockValue*100); printf("clockValue*100/100 : %...
- Sat Apr 13, 2019 12:55 am
- Forum: Cross development tools
- Topic: OSDK C compiler : are floats supported?
- Replies: 8
- Views: 9050
Re: OSDK C compiler : are floats supported?
The problem cannot be overflow, I initially thought that was the case which is why I printed the intermediary values and they all fit snugly into a 16 bit integer. All computations fit the same pattern: set a variable to a value of 200 (in the latter case, that is obtained by "clock() * 100&quo...
- Fri Apr 12, 2019 3:13 am
- Forum: Cross development tools
- Topic: OSDK C compiler : are floats supported?
- Replies: 8
- Views: 9050
Re: OSDK C compiler : are floats supported?
Ohhhh, I think I have found the actual issue and it might not be float related at all. :D Gimme a few minutes and I will get back with more details. ;) Edit: yup, not related to float, there is something fishy with integer computations as soon as a call to clock() is involved. :shock: Here's a small...
- Fri Apr 12, 2019 2:22 am
- Forum: Cross development tools
- Topic: OSDK C compiler : are floats supported?
- Replies: 8
- Views: 9050
Re: OSDK C compiler : are floats supported?
Yup! Here it is: The code: #include <time.h> void main(void) { long testl = 224; float testlf = (float)testl; long clockl = clock(); float clockf = 123; float clocklf = clockl; float seconds = clockf / (float)CLOCKS_PER_SEC; float seconds2 = clockf / CLOCKS_PER_SEC; clock_t TIME0, TIME1; printf(&quo...
- Wed Apr 10, 2019 3:46 am
- Forum: Cross development tools
- Topic: OSDK C compiler : are floats supported?
- Replies: 8
- Views: 9050
OSDK C compiler : are floats supported?
Hello kitties, While attempting to use float values in my program I encountered a few weird issues with numerical values which led me to wonder if float values were correctly supported by the C compiler of the OSDK. In order to verify that floats were properly supported I wrote the following program...
- Wed Apr 10, 2019 2:58 am
- Forum: C programming
- Topic: Opcode 52 executed at 024D
- Replies: 5
- Views: 9114
Re: Opcode 52 executed at 024D
IMO, the size is not an issue. Attached is TAP file with 23774 bytes length and the source, which is: :) Indeed, thanks for testing! And I confirm that adding few printf() calls to the program, which increases its size, can sometime help make it work. :shock: I would bet for a zero page variable no...
- Wed Apr 10, 2019 2:38 am
- Forum: Cross development tools
- Topic: CRTC Pasta assembler
- Replies: 4
- Views: 6674
Re: CRTC Pasta assembler
[the syntax, inspired by xa65] It is not, by far. I do not know XA's syntax too well but I guess that is why the author said "inspired by" rather than "identical to". ;) What is different from XA: - .org instead of * - .scope instead of .( and .) - .byte instead of .byt - .macro...
- Tue Apr 09, 2019 4:53 am
- Forum: C programming
- Topic: Opcode 52 executed at 024D
- Replies: 5
- Views: 9114
Opcode 52 executed at 024D
Hello, as the title indicates, this is the error I get in Oricutron when executing a newly compiled C program. ;) Here is what I am doing: Compile a C program using the OSDK (1.13). This builds fine and produces a .TAP file of 23 774 bytes, which is quite on the big side. Launch Oricutron (using osd...
- Tue Apr 09, 2019 3:18 am
- Forum: Cross development tools
- Topic: CRTC Pasta assembler
- Replies: 4
- Views: 6674
CRTC Pasta assembler
Hello kittens! Have your heard of the Pasta assembler (https://github.com/crtc-demos/pasta)? I just found it while browsing the CRTC GitHub projects. Its syntax is inspired by xa65's (which most people here are familiar with I recon) and adds a very nice automatic zero page register allocation featu...
- Tue Apr 09, 2019 2:28 am
- Forum: Technical questions
- Topic: Replace XT1 and XT2 crystals
- Replies: 12
- Views: 9345
Re: Replace XT1 and XT2 crystals
I bought two machines from Ebay UK then had them shipped to my dad's place and he in turn shipped them to me (most sellers won't even ship to Canada). The first he didn't mark as a gift so I got hammered for duty. These machines along with the Cumulus I bought combined cost more than a half decent ...
- Wed Apr 03, 2019 5:51 am
- Forum: Tape and floppy disk converters
- Topic: Novalight - very fast tape loading
- Replies: 122
- Views: 103854
Re: Novalight - very fast tape loading
So, here is the exhaustive exploration algorithm. Note that this is: a mix of c and c++ idioms untested, just written in an editor and a sheet of paper ;) and thus is bound to be buggy if not entirely algorithmically faulty. ;) struct S_Element { int id; // uniquely identifies this element int freq;...
- Wed Apr 03, 2019 1:19 am
- Forum: Technical questions
- Topic: Cumulus with Wifi/SD Card?
- Replies: 12
- Views: 9580
Re: Cumulus with Wifi/SD Card?
Having to swap storage media between PC and retro kitten can be quite a pain point indeed. As an alternative to WiFi SD Cards, there is also the option of adapting existing WiFi cards to the Oric. Chinnivision has reviewed one such card for the Amstrad CPC and I must say it looks really practical to...
- Wed Apr 03, 2019 1:12 am
- Forum: Technical questions
- Topic: Replace XT1 and XT2 crystals
- Replies: 12
- Views: 9345
Re: Replace XT1 and XT2 crystals
On that topic I imported a couple of dead Orics recently to Canada both of which were dead (I'll create a separate thread on these shortly) Oh, Canadia! There do I live as well. ;) If that is not indiscreet, where did you buy them from? I am currently developing solely on emulation (Oricutron on Wi...