Re: [fpc-pascal] AVR Busy Wait implementation

2016-01-18 Thread Simon Ameis
Thanks for the hint! I've had declared delay_loop_1 and delay_loop_2 just inside the implementation section. Maybe these points should be added to documentation for inlining? - assembler procecedure currently can't be inlined (may change) - all procedures called by the procedure and all types used

Re: [fpc-pascal] location modifier

2016-01-18 Thread Sven Barth
Am 18.01.2016 18:19 schrieb "Karoly Balogh (Charlie/SGR)" < char...@scenergy.dfmk.hu>: > > Hi, > > On Mon, 18 Jan 2016, Sven Barth wrote: > > > Am 18.01.2016 17:00 schrieb "Karoly Balogh (Charlie/SGR)" < char...@scenergy.dfmk.hu>: > > > In the future, I plan to reuse syscalls and the location > > >

Re: [fpc-pascal] location modifier

2016-01-18 Thread Karoly Balogh (Charlie/SGR)
Hi, On Mon, 18 Jan 2016, Sven Barth wrote: > Am 18.01.2016 17:00 schrieb "Karoly Balogh (Charlie/SGR)" > : > > In the future, I plan to reuse syscalls and the location > > syntax for a possible Atari port too. > > Who are you and what have you done with Charlie? :P Haha! :D I have eaten him! :D

Re: [fpc-pascal] location modifier

2016-01-18 Thread Sven Barth
Am 18.01.2016 17:00 schrieb "Karoly Balogh (Charlie/SGR)" < char...@scenergy.dfmk.hu>: > In the future, I plan to reuse syscalls and the location > syntax for a possible Atari port too. Who are you and what have you done with Charlie? :P Regards, Sven _

Re: [fpc-pascal] location modifier

2016-01-18 Thread Mattias Gaertner
On Mon, 18 Jan 2016 16:59:49 +0100 (CET) "Karoly Balogh (Charlie/SGR)" wrote: >[...] > And there's no need to take educated guesses, it's all documented in the > wiki: > > http://wiki.freepascal.org/Amiga#Introduction_to_SysCalls > http://wiki.freepascal.org/MorphOS#Introduction_to_SysCalls > >

Re: [fpc-pascal] location modifier

2016-01-18 Thread Mattias Gaertner
On Mon, 18 Jan 2016 16:40:17 +0100 (CET) Michael Van Canneyt wrote: > > > On Mon, 18 Jan 2016, Mattias Gaertner wrote: > > > Hi, > > > > I can't find the 'location' modifier in the docs. Is it missing? > > I didn't even know this modifier existed. > Let alone that I know what it does > (a

Re: [fpc-pascal] location modifier

2016-01-18 Thread Karoly Balogh (Charlie/SGR)
Hi, On Mon, 18 Jan 2016, Mattias Gaertner wrote: > I can't find the 'location' modifier in the docs. Is it missing? > > For example: > > function bsd_socket(Domain: LongInt location 'd0'; Type_: LongInt > location 'd1'; Protocol: LongInt location 'd2'): LongInt; syscall > SocketBase 30; > > See f

Re: [fpc-pascal] location modifier

2016-01-18 Thread Michael Van Canneyt
On Mon, 18 Jan 2016, Mattias Gaertner wrote: Hi, I can't find the 'location' modifier in the docs. Is it missing? I didn't even know this modifier existed. Let alone that I know what it does (although I can take an educated guess) Michael. __

[fpc-pascal] location modifier

2016-01-18 Thread Mattias Gaertner
Hi, I can't find the 'location' modifier in the docs. Is it missing? For example: function bsd_socket(Domain: LongInt location 'd0'; Type_: LongInt location 'd1'; Protocol: LongInt location 'd2'): LongInt; syscall SocketBase 30; See for example packages/rtl-extra/src/amiga/sockets.pp Mattias _

Re: [fpc-pascal] [FEATURE REQUEST] New FGL type: TFPGMapObjectData

2016-01-18 Thread silvioprog
On Mon, Jan 18, 2016 at 4:35 AM, Maciej Izak wrote: > 2016-01-17 23:50 GMT+01:00 silvioprog : > >> Hello, >> >> The FGL unit has many very nice classes, but we should add a new type: >> TFPGMapObjectData. (or simply TFPGMapObject) >> >> This type is just a list that frees its itens on destroy, si

Re: [fpc-pascal] Can I compile MASM code/file in FPC?

2016-01-18 Thread silvioprog
On Mon, Jan 18, 2016 at 7:09 AM, Sven Barth wrote: [...] > You might not be able to debug the source assembly code, but you can debug > the assembler code directly using the Assembler window. Since it's > assembler code anyway there won't be that much of a difference. And you can > display the Re

Re: [fpc-pascal] Can I compile MASM code/file in FPC?

2016-01-18 Thread Sven Barth
Am 17.01.2016 19:54 schrieb "silvioprog" : > > On Sat, Jan 16, 2016 at 5:32 AM, Sven Barth wrote: >> >> Am 16.01.2016 04:45 schrieb "silvioprog" : >> > >> > Hello, >> > >> > Can I compile MASM code (or files) in FPC? If so, how to declare some MASM directives like .code, .data?, .const etc.?: >> >