Re: [fpc-pascal] Porting TP ASM to FPC ASM

2006-08-22 Thread Michael Preslar
I'm trying to convert some old Turbo Pascal asm to win32 fpc asm and dont know where to start.. I'm compiling with -Sd and -Twin32 and {$asmmode intel}.. . If I change ax to eax, di to edi and es:[di] to [di], the code compiles without warnings or errors, but I don't know if that's the

[fpc-pascal] Porting TP ASM to FPC ASM

2006-08-21 Thread Michael Preslar
Hope this is the right place to post.. I'm trying to convert some old Turbo Pascal asm to win32 fpc asm and dont know where to start.. I'm compiling with -Sd and -Twin32 and {$asmmode intel}.. An example of what I'm trying to port: procedure ClearFlag(var Flags: word; FlagMask: word); assemb

Re: [fpc-pascal] Blackberry

2006-07-05 Thread Michael Preslar
http://en.wikipedia.org/wiki/BlackBerry#Operating_system http://en.wikipedia.org/wiki/BlackBerry#Hardware A client of mine is wanting me to port some of our software to the Blackberry handheld. Being that its Pascal code, I'd prefer sticking to ... Another option is to use Midlet Pasca

[fpc-pascal] Blackberry

2006-07-05 Thread Michael Preslar
A client of mine is wanting me to port some of our software to the Blackberry handheld. Being that its Pascal code, I'd prefer sticking to a Pascal compiler.. And since FPC is seriously cross platform, I have to ask: Are there any plans, or work towards, porting FPC to the Blackberry? -- Mi

RE: [fpc-pascal] RS232 isr

2006-07-02 Thread Michael Preslar
> Has someone used Elecom? Could a real-mode ISR be used? I don't know anything about real mode.. But a good example of EleCom's usage can be found in MannDoor.. Available from http://www.randm.ca Of course, the EleBBS source makes heavy use of EleCom as well, but I cant find the download link to

RE: [fpc-pascal] Cross Platform Save/Restore Screen

2006-06-20 Thread Michael Preslar
Thanks to all for the pointers. The FPC IDE source is definitly useful. Will have to play with that and see what I can come up with.. Thanks again! -- Michael Preslar Landline: (402) 614-3551 Cell: (402) 990-8001 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED

[fpc-pascal] Cross Platform Save/Restore Screen

2006-06-20 Thread Michael Preslar
nux' unit], and os2, I'm converting LordCfg to a native binary as well, and need the savescreen/restorescreen for the eyecandy part of the program) -- Michael Preslar Landline: (402) 614-3551 Cell: (402) 990-8001 ___ fpc-pasca

[fpc-pascal] Compiling a unit loops infinitely

2006-03-21 Thread Michael Preslar
I'm trying to compile and cleanup some old Turbo Pascal code.. This one unit of mine, toolbox.pas.. Whenever I go to compile, ppc386.exe loops by printing "Compiling TOOLBOX.pas" over and over again. toolbox.pas doesn't self-reference, and the units toolbox.pas don't use toolbox.pas [I'm not a

RE: [fpc-pascal] Paths on different OS's

2005-07-14 Thread Michael Preslar
I always do something like this: {$ifdef UNIX} const dirsep = '/'; {$else} const dirsep = '\'; {$endif} path := ExtractFileDir(paramstr(0) + dirsep + 'somepath' + dirsep + 'directory' + 'etc' + dirsep); Id imagine that one of fpc's units already has something very similar to this. -Original