[fpc-pascal] Intel x86 inline assembler problem

2008-11-18 Thread leledumbo
procedure DumpRegs; var Reg: array [0..7] of LongWord; SReg: array [0..5] of Word; EIP: LongWord; EFLAGS : LongWord; begin asm // save registers while they are not modified by another procedure call. note that depending // on your compiler settings, ebp may already be trashed (s

Re: [fpc-pascal] Make FPC closer to hardware

2008-11-18 Thread leledumbo
Frank Peelo wrote: > > yes, but for example you /don't/ need to write your own write routines. > (You *can't* write writeln in Pascal!) > I know, I'm just saying Write routines, doesn't have to be the same as Write(Ln) which has variable number of arguments. I'm writing one for each type (.i

Re: [fpc-pascal] Make FPC closer to hardware

2008-11-18 Thread Frank Peelo
leledumbo wrote: Well, it's just an example. I'm saying that because the need of file system support is quite frustrating that I need to write my own write routines. yes, but for example you /don't/ need to write your own write routines. (You *can't* write writeln in Pascal!) You can implement