Re: [fpc-devel] FPC and Z80

2020-04-27 Thread Marco van de Voort
Op 2020-04-27 om 21:24 schreef Florian Klämpfl: Well, for 6502 working 16-bit ptr indirect via volatile zp memory locations needs to be implemented anyway :-) Does that CPU have no hardware stack at all, or only limited (128/256 bytes or so?) It has a full stack but too little registers to u

Re: [fpc-devel] FPC and Z80

2020-04-27 Thread Florian Klämpfl
Am 27.04.20 um 21:12 schrieb Marco van de Voort: Op 2020-04-27 om 18:28 schreef Florian Klaempfl: I have no idea, but quickly read through some docs, and it seems the GameBoy CPU doesn't have IX/IY registers, which seems to be very useful to implement some of the more complex references hand

Re: [fpc-devel] FPC and Z80

2020-04-27 Thread Marco van de Voort
Op 2020-04-27 om 18:28 schreef Florian Klaempfl: I have no idea, but quickly read through some docs, and it seems the GameBoy CPU doesn't have IX/IY registers, which seems to be very useful to implement some of the more complex references handling, according to what Nikolay wrote earlier.

Re: [fpc-devel] FPC and Z80

2020-04-27 Thread Sven Barth via fpc-devel
Florian Klaempfl schrieb am Mo., 27. Apr. 2020, 18:28: > Am 27.04.2020 um 17:52 schrieb Karoly Balogh (Charlie/SGR): > > Hi, > > > > On Mon, 27 Apr 2020, Sven Barth via fpc-devel wrote: > > > >>> Well, I'm surprised and impressed you got it to work at all... > >>> Quite an achievement. > >> > >>

Re: [fpc-devel] New feature announcement: constant parameters for generics

2020-04-27 Thread Sven Barth via fpc-devel
Ryan Joseph via fpc-devel schrieb am Mo., 27. Apr. 2020, 18:28: > I think constants in generics may be the only way to create dynamically > sized types at compile time (via static arrays). That seems like a really > narrow usage but it opens a lot of doors most of us have probably never > thought

Re: [fpc-devel] FPC and Z80

2020-04-27 Thread Florian Klaempfl
Am 27.04.2020 um 17:52 schrieb Karoly Balogh (Charlie/SGR): Hi, On Mon, 27 Apr 2020, Sven Barth via fpc-devel wrote: Well, I'm surprised and impressed you got it to work at all... Quite an achievement. Considering that we already support AVR as well I was rather confident here. :D Maybe in t

Re: [fpc-devel] FPC and Z80

2020-04-27 Thread nickysn--- via fpc-devel
On Mon, 2020-04-27 at 17:52 +0200, Karoly Balogh (Charlie/SGR) wrote: > Hi, > > On Mon, 27 Apr 2020, Sven Barth via fpc-devel wrote: > > >> Well, I'm surprised and impressed you got it to work at all... > >> Quite an achievement. > > > > Considering that we already support AVR as well I was rathe

Re: [fpc-devel] FPC and Z80

2020-04-27 Thread J. Gareth Moreton
I'm kind of impressed actually that you're going out of your way to support older consoles and workstations.  It's certainly good for hobbyist development.  It's a shame that so many modern consoles have NDAs and physical measures to prevent homebrew software.  I still feel sad that the OUYA fl

Re: [fpc-devel] FPC and Z80

2020-04-27 Thread Karoly Balogh (Charlie/SGR)
Hi, On Mon, 27 Apr 2020, Sven Barth via fpc-devel wrote: >> Well, I'm surprised and impressed you got it to work at all... >> Quite an achievement. > > Considering that we already support AVR as well I was rather confident > here. :D Maybe in the future we can also add GameBoy support which uses

Re: [fpc-devel] New feature announcement: constant parameters for generics

2020-04-27 Thread Ryan Joseph via fpc-devel
I think constants in generics may be the only way to create dynamically sized types at compile time (via static arrays). That seems like a really narrow usage but it opens a lot of doors most of us have probably never thought about. I suspect in time more good usages will be discovered. Regards

Re: [fpc-devel] FPC and Z80

2020-04-27 Thread Sven Barth via fpc-devel
Michael Van Canneyt schrieb am Mo., 27. Apr. 2020, 15:40: > > > On Mon, 27 Apr 2020, nickysn--- via fpc-devel wrote: > > > Last night, I got the full system unit to compile, including console > > output, so now you can use standard write/writeln. Unfortunately if you > > include both read/readln

Re: [fpc-devel] FPC and Z80

2020-04-27 Thread Florian Klaempfl
Am 27.04.2020 um 15:37 schrieb nickysn--- via fpc-devel: On Mon, 2020-04-20 at 17:07 +0300, nick...@gmail.com wrote: On Thu, 2020-04-16 at 11:04 +0200, Guillermo wrote: Thanks Swen. I see last commit was 2 days ago so it is active. I would like to know who is responsible to speak to him. May

Re: [fpc-devel] FPC and Z80

2020-04-27 Thread nickysn--- via fpc-devel
On Mon, 2020-04-27 at 15:40 +0200, Michael Van Canneyt wrote: > > On Mon, 27 Apr 2020, nickysn--- via fpc-devel wrote: > > > Last night, I got the full system unit to compile, including > > console > > output, so now you can use standard write/writeln. Unfortunately if > > you > > include both re

Re: [fpc-devel] FPC and Z80

2020-04-27 Thread Michael Van Canneyt
On Mon, 27 Apr 2020, nickysn--- via fpc-devel wrote: Last night, I got the full system unit to compile, including console output, so now you can use standard write/writeln. Unfortunately if you include both read/readln and write/writeln in your program, the program becomes too big to fit in th

Re: [fpc-devel] FPC and Z80

2020-04-27 Thread nickysn--- via fpc-devel
On Mon, 2020-04-20 at 17:07 +0300, nick...@gmail.com wrote: > On Thu, 2020-04-16 at 11:04 +0200, Guillermo wrote: > > Thanks Swen. > > > > I see last commit was 2 days ago so it is active. I would like to > > know > > who is responsible to speak to him. May be I can help with the MSX > > target,