The common usual suspect for a first high-level language esp. on small systems would be Forth. (http://forum.6502.org/viewforum.php?f=9, of course) One of its strengths is the extremely compact code it tends to generate.
Regarding C, you may want to take a look at my Small C compiler cc64 (https ...
Search found 22 matches
- Thu Jan 04, 2024 8:10 am
- Forum: Programming
- Topic: High-level programming languages *on* the SBC
- Replies: 32
- Views: 14831
- Tue Jan 02, 2024 10:30 pm
- Forum: Programming
- Topic: Vintage Computing Christmas Challenge 2023 (VC³ 2023)
- Replies: 47
- Views: 12750
Re: Vintage Computing Christmas Challenge 2023 (VC³ 2023)
I decided to try my hand at some C for my cc64 compiler. I was too late to submit anything, though, only noticed the challenge just after the deadline, on Dec 26th.
In the first version I did some sort of overlay of vertical and horizontal triangular oscillations. Next I noticed the modulo-6 aspect ...
In the first version I did some sort of overlay of vertical and horizontal triangular oscillations. Next I noticed the modulo-6 aspect ...
- Fri Oct 07, 2022 6:33 pm
- Forum: Programming
- Topic: 6502 assembler _in_ 6502 assembler?
- Replies: 16
- Views: 3787
Re: 6502 assembler _in_ 6502 assembler?
A few related prior discussions:
http://forum.6502.org/viewtopic.php?f=2&t=6475 where Gragathaz talks about his Editor Not Included Assembler - currently inaccessibly stuffed away is a storage.
https://atariwiki.org/wiki/Wiki.jsp?page=BiboAssembler - an Atari 8-bit assembler
https://www ...
http://forum.6502.org/viewtopic.php?f=2&t=6475 where Gragathaz talks about his Editor Not Included Assembler - currently inaccessibly stuffed away is a storage.
https://atariwiki.org/wiki/Wiki.jsp?page=BiboAssembler - an Atari 8-bit assembler
https://www ...
- Sat Feb 26, 2022 7:10 pm
- Forum: Programming
- Topic: How do you debug your 6502/65C02 code?
- Replies: 27
- Views: 4986
Re: How do you debug your 6502/65C02 code?
I tried using VICE, but apparently it doesn't support the 65C02. In general, tools that are intended for C64 and Atari development tend to have this problem.
You could use x16emu ( https://www.commanderx16.com/forum/index.php?/files/file/25-commander-x16-emulator-winmaclinux/ ), the emulator for ...
You could use x16emu ( https://www.commanderx16.com/forum/index.php?/files/file/25-commander-x16-emulator-winmaclinux/ ), the emulator for ...
- Sat Feb 26, 2022 6:54 pm
- Forum: Programming
- Topic: LLVM-MOS Toolchain
- Replies: 10
- Views: 2716
Re: LLVM-MOS Toolchain
Wow, big congratulations, mysterymath, and my deepest admiration for your perseverance. The 6502 community is really lucky to have someone chase this next level of power in the compiler landscape to the point where it is now a reality and useful and available! I'm really excited!
- Wed Jan 05, 2022 7:18 pm
- Forum: Programming
- Topic: tiny_printf_6502
- Replies: 3
- Views: 1059
Re: tiny_printf_6502
This is very cool indeed!
And funnily enough, without having seen your post or project, I have recently done something similar, a printf() for my Small C compiler:
https://github.com/pzembrod/cc64/blob/m ... e/printf.a
And funnily enough, without having seen your post or project, I have recently done something similar, a printf() for my Small C compiler:
https://github.com/pzembrod/cc64/blob/m ... e/printf.a
- Wed Jan 05, 2022 7:12 pm
- Forum: Programming
- Topic: C64/C16/Plus4-hosted Small C compiler cc64
- Replies: 6
- Views: 3139
Re: C64/C16/Plus4-hosted Small C compiler cc64
Just before Christmas I released v0.10 (https://github.com/pzembrod/cc64/releases/tag/v0.10) which brings the mentioned ANSI syntax for function definitions (no type check between formal and actual params, though), better support for fastcall functions, and a basic libc, partially written in C ...
- Tue Jun 01, 2021 9:21 am
- Forum: Programming
- Topic: 6502 bit-banged serial code examples?
- Replies: 7
- Views: 1742
Re: 6502 bit-banged serial code examples?
pagetable.com has some of the imho best commented C64 Kernal listings where you can find both:
Synchronous bit-banged serial: The serial IEC send (CIOUT) and receive (ACPTR) routines:
CIOUT: https://www.pagetable.com/c64ref/c64disasm/#EDDD
ACPTR: https://www.pagetable.com/c64ref/c64disasm/#EE13 ...
Synchronous bit-banged serial: The serial IEC send (CIOUT) and receive (ACPTR) routines:
CIOUT: https://www.pagetable.com/c64ref/c64disasm/#EDDD
ACPTR: https://www.pagetable.com/c64ref/c64disasm/#EE13 ...
- Mon May 31, 2021 9:00 pm
- Forum: Forth
- Topic: A small Forth profiler
- Replies: 5
- Views: 1054
Re: A small Forth profiler
BigEd wrote:
Check the main branch - looks like the specifically linked dev branch has been pruned.
I now also fixed the links in the initial post, with an "edited" note.
- Fri May 14, 2021 10:10 pm
- Forum: Programming
- Topic: C64/C16/Plus4-hosted Small C compiler cc64
- Replies: 6
- Views: 3139
Re: C64/C16/Plus4-hosted Small C compiler cc64
Gurft wrote:
Now I’m much more incentivized to get my Plus4 working properly again!
The latest release brought a decent compile speed increase (https://github.com/pzembrod/cc64/releases/tag/v0.9), and I'm currently working on enabling ANSI-style function definitions.
- Fri May 14, 2021 10:05 pm
- Forum: Programming
- Topic: LLVM 6502 Codegen
- Replies: 154
- Views: 43208
Re: LLVM 6502 Codegen
That's some serious generated assembly code indeed, wow!
Are the sources of hello.c and printf.c viewable somewhere from which it was generated?
Are the sources of hello.c and printf.c viewable somewhere from which it was generated?
- Fri May 14, 2021 9:47 pm
- Forum: Emulation and Simulation
- Topic: test automation with VICE
- Replies: 6
- Views: 2297
Re: test automation with VICE
behold! remote 8-bit test automation!
https://photos.app.goo.gl/BX42trUAy7Q3Ui4x9
Great stuff!
Picking up this 2 year old thread to compare notes. A bit after you I faced the same problem, fully automating build and test sequences with VICE. I hadn't seen your post, and didn't know or didn't ...
https://photos.app.goo.gl/BX42trUAy7Q3Ui4x9
Great stuff!
Picking up this 2 year old thread to compare notes. A bit after you I faced the same problem, fully automating build and test sequences with VICE. I hadn't seen your post, and didn't know or didn't ...
- Fri Apr 16, 2021 7:24 pm
- Forum: Forth
- Topic: A small Forth profiler
- Replies: 5
- Views: 1054
A small Forth profiler
Hi all,
I wanted to share a new little tool I built in the context of my cc64 development, a small profiler. It's built for C64 VolksForth and uses an extended NEXT routine that sorts NEXT invocation counts and the time spent between each NEXT iteration into one of up to 8 buckets, memory ranges in ...
I wanted to share a new little tool I built in the context of my cc64 development, a small profiler. It's built for C64 VolksForth and uses an extended NEXT routine that sorts NEXT invocation counts and the time spent between each NEXT iteration into one of up to 8 buckets, memory ranges in ...
- Thu Feb 18, 2021 9:33 pm
- Forum: Programming
- Topic: Native 65C02 assembler? Portable to Commander X16?
- Replies: 15
- Views: 9040
Re: Native 65C02 assembler? Portable to Commander X16?
I'm not sure what sort of tech is used to interface with old hardware, and I'd be surprised if there were any easy ways to get new hardware to read old media. But I'm sure others here have answers for that, eh?
I may have a bit of an answer. There's an odd FDC controller called Catweasel ...
- Thu Feb 18, 2021 9:19 pm
- Forum: Programming
- Topic: LLVM 6502 Codegen
- Replies: 154
- Views: 43208
Re: LLVM 6502 Codegen
Amazing progress!