Developing a native pascal/c compiler for 65c816 one problem is implement new()/dispose() procedures and malloc()/free() functions that take advantage of large memory addressable by cpu.
In attached file an attempt of a possible implementation of 2 routines:
- GetMem: allocate a block of memory from ...
Search found 83 matches
- Sun Jan 24, 2021 4:41 pm
- Forum: Programming
- Topic: Simple Heap Manager for 65C816
- Replies: 0
- Views: 6506
- Wed Jan 06, 2021 3:32 pm
- Forum: Programmable Logic
- Topic: MMU CBM 8722 Verilog Clone
- Replies: 10
- Views: 3157
Re: MMU CBM 8722 Verilog Clone
...but I didn't fully understand why you didn't think of an FPGA implementation of your "C16" project as you can write Verilog code and this technology would have provided you the design flexibility and cost reduction...
Good question. My goal was built a machine with a serious O.S. using old ...
Good question. My goal was built a machine with a serious O.S. using old ...
- Wed Jan 06, 2021 11:05 am
- Forum: Programmable Logic
- Topic: MMU CBM 8722 Verilog Clone
- Replies: 10
- Views: 3157
Re: MMU CBM 8722 Verilog Clone
Hi Webst, as told, when i developed this code i planned to built a real 65c02 system. I uploaded this code for 2 raisons: 1) share with other peoples (in forum many threads about MMU for 6502). 2) Have feedback not just about verilog implementation, but especially about my approach to a possible MMU ...
- Tue Jan 05, 2021 10:54 am
- Forum: Programmable Logic
- Topic: MMU CBM 8722 Verilog Clone
- Replies: 10
- Views: 3157
Re: MMU CBM 8722 Verilog Clone
Hi webmast,
in last years my interest is migrated to 65816 projects (even if i builts two 65c02 projects: one is on my web site, the one other is based on a banked-scheme similar to the one used on the plus/4), so i lose interest on stricty 6502 uP.
If you want implement a fully 8722 in HDL the ...
in last years my interest is migrated to 65816 projects (even if i builts two 65c02 projects: one is on my web site, the one other is based on a banked-scheme similar to the one used on the plus/4), so i lose interest on stricty 6502 uP.
If you want implement a fully 8722 in HDL the ...
- Sat Jan 02, 2021 10:08 am
- Forum: Programmable Logic
- Topic: MMU CBM 8722 Verilog Clone
- Replies: 10
- Views: 3157
Re: MMU CBM 8722 Verilog Clone
Still one note regarding the DBE signal...
You have implemented this input in order to (externally) manage contention on the cpu data bus when registers are read, still in a real 8722MMU there is not such a port and there isn't any external "chip select" detection logic for the MMU in a C128. So ...
You have implemented this input in order to (externally) manage contention on the cpu data bus when registers are read, still in a real 8722MMU there is not such a port and there isn't any external "chip select" detection logic for the MMU in a C128. So ...
- Fri May 03, 2019 5:09 pm
- Forum: Programming
- Topic: ISR for UART 16C550 - 65C816
- Replies: 2
- Views: 1417
ISR for UART 16C550 - 65C816
A simple ISR for uart 16c550 + 65c816 is here:
http://65xx.unet.bz/c16sw/
Uart work in fifo mode, can handle these baud rates: 38,400 - 57,600 - 115,200 - 230,400 (uart clocked at 3.6864Mhz), and allow both hardware handshake (through standard null-modem or uplink cable) and software handshake ...
http://65xx.unet.bz/c16sw/
Uart work in fifo mode, can handle these baud rates: 38,400 - 57,600 - 115,200 - 230,400 (uart clocked at 3.6864Mhz), and allow both hardware handshake (through standard null-modem or uplink cable) and software handshake ...
- Wed Apr 24, 2019 3:50 pm
- Forum: Programming
- Topic: IMPLEMENTING AN OPERATING SYSTEM API IN A 65C816 SYSTEM
- Replies: 19
- Views: 4995
Re: IMPLEMENTING AN OPERATING SYSTEM API IN A 65C816 SYSTEM
Just as contribution to this discussion, in my c16 computer i'm developing system calls through 'cop' instruction; i use 'signature byte' as 'function number'.
For example, printing a character to console, is accomplished with this code:
lda #'A'
cop $00
The code i use for cop handler can be ...
For example, printing a character to console, is accomplished with this code:
lda #'A'
cop $00
The code i use for cop handler can be ...
- Mon Apr 08, 2019 10:11 am
- Forum: EhBASIC
- Topic: Exponentiation with integer exponent
- Replies: 11
- Views: 20220
Re: Exponentiation with integer exponent
I agree with GARTH, but with an additional comment.
In some applications losing accurance in computation can give very bad pratical result; in GPS the cancellation error due to the computing differences of numbers about fractions of uS, can give a wrong position about hundreds meters (for no say ...
In some applications losing accurance in computation can give very bad pratical result; in GPS the cancellation error due to the computing differences of numbers about fractions of uS, can give a wrong position about hundreds meters (for no say ...
- Fri Apr 05, 2019 2:52 pm
- Forum: Programming
- Topic: 65C816 SW: printf() family functions
- Replies: 1
- Views: 722
65C816 SW: printf() family functions
Hello,
i'm developing a "c-like" printf() family function, in assembler, for the 65c816 uP.
Six function are in develop here:
1) cprintf(lpFmt, ..., wCount) - format parameters basis the format string and print on console
2) tprintf(lpFmt, ..., wCount) - print on default text device (useful for ...
i'm developing a "c-like" printf() family function, in assembler, for the 65c816 uP.
Six function are in develop here:
1) cprintf(lpFmt, ..., wCount) - format parameters basis the format string and print on console
2) tprintf(lpFmt, ..., wCount) - print on default text device (useful for ...
- Wed Oct 31, 2018 1:35 pm
- Forum: Programming
- Topic: IEEE-754 style arithmetic in practice
- Replies: 12
- Views: 4724
Re: IEEE-754 style arithmetic in practice
The rounding error while basic operations is indipendent from the base. The only justification for use decimal base is the rounding error due to the conversion from binary to decimal string. This conversion involve a scaling by powers of ten until the number fall into a wanted range, then is treated ...
- Tue Oct 30, 2018 6:54 pm
- Forum: Programming
- Topic: The Woz FP routines
- Replies: 14
- Views: 2579
Re: The Woz FP routines
drogon wrote:
granati wrote:
Just as suggestion: why don't use the Microsoft 5 bytes f.p. implementation as in commodore line?
Cheers,
-Gordon
- Tue Oct 30, 2018 6:51 pm
- Forum: General Discussions
- Topic: OT: Binary or decimal for floating point?
- Replies: 40
- Views: 9166
Re: OT: Binary or decimal for floating point?
Just for say: no matter the base used, any machine work with a finite number of bits, or nibbles, or digits, so in any base the range of number is just one restricted subset of irrational number, and with variable distance between consecutive numbers.
- Tue Oct 30, 2018 6:36 pm
- Forum: Programming
- Topic: The Woz FP routines
- Replies: 14
- Views: 2579
Re: The Woz FP routines
Just as suggestion: why don't use the Microsoft 5 bytes f.p. implementation as in commodore line?
- Tue Oct 30, 2018 2:28 pm
- Forum: Programming
- Topic: IEEE-754 style arithmetic in practice
- Replies: 12
- Views: 4724
Re: IEEE-754 style arithmetic in practice
@Chromatix
Actually, for basic operations in my implementation i use a full 128 bits mantissa (15 guard bits), with usual rounding to the nearest. In division algorithm i use 2 more bits for last remainder (at some point the infinite cycle must be stopped), and i use the msb for round the 128 bits ...
Actually, for basic operations in my implementation i use a full 128 bits mantissa (15 guard bits), with usual rounding to the nearest. In division algorithm i use 2 more bits for last remainder (at some point the infinite cycle must be stopped), and i use the msb for round the 128 bits ...
- Tue Oct 30, 2018 2:17 pm
- Forum: Programming
- Topic: IEEE-754 style arithmetic in practice
- Replies: 12
- Views: 4724
Re: IEEE-754 style arithmetic in practice
65C02 based desk calculator, now that's a nice idea.
The problem when implementing a floating point package is, that the devil hides in the detail.
For instance, in the rounding errors when calculating polynomials for having transcendental functions.
Are used rational function's, in a strict ...
The problem when implementing a floating point package is, that the devil hides in the detail.
For instance, in the rounding errors when calculating polynomials for having transcendental functions.
Are used rational function's, in a strict ...