Search found 158 matches
- Thu May 04, 2023 3:06 am
- Forum: Programming
- Topic: C compiler for the W65c816?
- Replies: 53
- Views: 20732
Re: C compiler for the W65c816?
I never programmed the MC68000, [...]
Clearly.
I read about the MC68000 but it didn't seem interesting.
In Forth it is common to keep the top element of the data-stack (the TOS in Forth terminology) in a register. On the i8086 this register was typically BX.
The MC68000 has a distinction ...
- Wed May 03, 2023 9:22 pm
- Forum: Programming
- Topic: C compiler for the W65c816?
- Replies: 53
- Views: 20732
Re: C compiler for the W65c816?
BCPL is a high level "algol-like" language that was designed round about 1966. It's very well established, but also almost completely moribund, however the original compiler is still being developed by the original creator and he released a new version just last year. It can output various forms ...
- Sat Apr 29, 2023 2:09 am
- Forum: Programming
- Topic: C compiler for the W65c816?
- Replies: 53
- Views: 20732
Re: C compiler for the W65c816?
I'll likely write a W65c816 byte-code VM eventually, but if anybody wants to take a stab at that, go ahead. Keep the above tips in mind. You can't use a legacy W65c816 assembler because it packs the code, but it should be easy enough to modify a legacy W65c816 assembler to insert zeros into the ...
- Sat Apr 29, 2023 1:12 am
- Forum: Programming
- Topic: C compiler for the W65c816?
- Replies: 53
- Views: 20732
Re: C compiler for the W65c816?
So your CPU sounds interesting - but would I then get it to emulate a 65816? No. I'd work on making it emulate the BCPL bytecode directly - cut out the middleman as it were... My RISC-V implementation doesn't use any RAM for the state of the VM/Bytecode - it's all held in registers. This makes it ...
- Thu Apr 27, 2023 9:17 pm
- Forum: Programming
- Topic: C compiler for the W65c816?
- Replies: 53
- Views: 20732
Re: C compiler for the W65c816?
Nobody has ever indicated any practical use for the bloated monster
Now you've lost me... RISC-V is designed to be simple and easy to understand with optional extensions to increase functionality if desired.. It's pretty much the opposite of bloated as you only include what you need.
Moat ...
- Mon Apr 17, 2023 3:27 am
- Forum: Programming
- Topic: C compiler for the W65c816?
- Replies: 53
- Views: 20732
Re: C compiler for the W65c816?
...why are you bothering with it at all? Just pick a nice CPU that's well known and understood, doesn't have the 64K bank shenanigans and use that instead. I can recommend RISC-V having worked with it recently - it's a joy to use. Several C compilers and easy to code for in assembly and FreeRTOS ...
- Sat Apr 15, 2023 10:41 pm
- Forum: Programming
- Topic: C compiler for the W65c816?
- Replies: 53
- Views: 20732
Re: C compiler for the W65c816?
A relatively major problem, I think, is the number of corner cases in the '816 behaviour...
What is a "corner case" in the '816 behavior?
The weirdest thing about the '816 was that it had 8-bit and 16-bit mode. If you disassemble the code you don't know what it does without knowing if the ...
What is a "corner case" in the '816 behavior?
The weirdest thing about the '816 was that it had 8-bit and 16-bit mode. If you disassemble the code you don't know what it does without knowing if the ...
- Sat Apr 15, 2023 3:06 am
- Forum: Programming
- Topic: C compiler for the W65c816?
- Replies: 53
- Views: 20732
Re: C compiler for the W65c816?
The W65c816 is a good target for a byte-code VM because all of the opcodes are one-byte, as compared to the more popular MC6811 and MC6809 that have multi-byte opcodes.
I wouldn't let the CPUs underlying opcodes be a reason for/against running a bytecode VM on it, however ...
I have a bytecode ...
- Fri Apr 14, 2023 1:46 am
- Forum: Programming
- Topic: C compiler for the W65c816?
- Replies: 53
- Views: 20732
C compiler for the W65c816?
Is there a C compiler for the W65c816?
WDC has a C compiler, but their website (https://www.westerndesigncenter.com/wdc/tools.php) says:
WDCTools are provided for use in development of products that feature 65xx processors from WDC and its licensees. They are NOT for reverse engineering of our ...
WDC has a C compiler, but their website (https://www.westerndesigncenter.com/wdc/tools.php) says:
WDCTools are provided for use in development of products that feature 65xx processors from WDC and its licensees. They are NOT for reverse engineering of our ...
- Thu May 03, 2018 2:44 am
- Forum: Forth
- Topic: vino816 Forth design
- Replies: 36
- Views: 17285
Re: vino816 Forth design
"Most computer applications boil down to searching and sorting."
"I believe that virtually every important aspect of programming arises somewhere in the context of sorting or searching!" (Donald Knuth, The Art of Computer Programming, Volume 3, "Sorting and Searching")
It's worth noting that ...
"I believe that virtually every important aspect of programming arises somewhere in the context of sorting or searching!" (Donald Knuth, The Art of Computer Programming, Volume 3, "Sorting and Searching")
It's worth noting that ...
- Wed May 02, 2018 3:00 am
- Forum: Forth
- Topic: vino816 Forth design
- Replies: 36
- Views: 17285
Re: vino816 Forth design
Could it be that Dr. Koopman meant doVAR instead of VARIABLE ? Or am I confirming my ignorance by asking such a question?
You are most likely correct --- he meant doVAR and doCON which are run-time. I agree.
Most compiler-writers focus on getting benchmark programs, such as ye olde Sieve, to ...
You are most likely correct --- he meant doVAR and doCON which are run-time. I agree.
Most compiler-writers focus on getting benchmark programs, such as ye olde Sieve, to ...
- Tue May 01, 2018 4:35 am
- Forum: General Discussions
- Topic: game machines
- Replies: 148
- Views: 32432
Re: game machines
Most "programmers" are actually script-kiddies --- their primary skill is to quickly "get up to speed" on some software
I've been a programmer since I was 9 (~36 years). Over 20 of those have been professional (paid). So it's a good thing I have a thick skin or I could have been offended by that ...
I've been a programmer since I was 9 (~36 years). Over 20 of those have been professional (paid). So it's a good thing I have a thick skin or I could have been offended by that ...
- Tue May 01, 2018 3:41 am
- Forum: Forth
- Topic: vino816 Forth design
- Replies: 36
- Views: 17285
Re: vino816 Forth design
The only time I used Pascal was on a CDC Cyber mainframe about 34 years ago, with time-share terminals. I remember that it said "ZURICH" in the header, was single-pass and upper-case only, and the printouts arrived some time after the jobs were batched on 17-inch-wide tractor feed paper, but I don ...
- Tue May 01, 2018 3:29 am
- Forum: Forth
- Topic: vino816 Forth design
- Replies: 36
- Views: 17285
Re: vino816 Forth design
BTW: William Mensch may have been thinking about Pascal rather than C. If so, then he was thinking about a crippled Pascal that lacks nested functions --- there is no register available for a local-frame pointer --- there were several such crippled Pascals in the 1980s, most notably Borland Turbo ...
- Tue May 01, 2018 3:04 am
- Forum: Forth
- Topic: vino816 Forth design
- Replies: 36
- Views: 17285
Re: vino816 Forth design
Could it be that Dr. Koopman meant doVAR instead of VARIABLE ? Or am I confirming my ignorance by asking such a question?
You are most likely correct --- he meant doVAR and doCON which are run-time.
I still don't put much stock into lists such as this --- they tend to hide a lot of assumptions ...
You are most likely correct --- he meant doVAR and doCON which are run-time.
I still don't put much stock into lists such as this --- they tend to hide a lot of assumptions ...