home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C!T ROM 2
/
ctrom_ii_b.zip
/
ctrom_ii_b
/
PROGRAM
/
FOXPRO
/
FCT1_12
/
FC_MEM.HDR
< prev
next >
Wrap
Text File
|
1990-12-24
|
3KB
|
144 lines
#output Force Tools 1.1 - Memory functions
*--- input word from port xx
function int in prototype
params value int port_adress
*--- out word to port xx
procedure out prototype
params value int port_adress, value int word_value
*
* return the segment in memory of a var/field/function/procedure
*
function int seg prototype
params untyped some_thing
*
* return the offset in memory of a var/field/function/procedure
*
function int offs prototype
params untyped some_thing
*
* convert a segment and an offset to a full pointer
*
function long get_ptr prototype
params value int offs, value int seg
*
* return a full pointer to a var/field/function/procedure
*
function long ptr prototype
params untyped some_thing
*
* move bytes in memory
*
procedure move prototype
params value long source_ptr, value long target_ptr, value uint move_len
*
* call a procedure without params wich is an untyped param
*
procedure call_untyped prototype
params untyped proc_ptr
*
* call a procedure / function using a pointer (use proc/func without params)
*
procedure call_ptr prototype
params value long ptr
*
* call a logical function using an untyped param
*
function logical lg_fcall prototype
params untyped func_ptr
*
* jmp to a procedure / function using a pointer (use proc/func without params)
*
procedure jump_ptr prototype
params value long ptr
*
* return a asciiz memory location as a char
*
function char ret_char_ptr prototype
params value long ptr
*
* return a non asciiz memory location as a char
*
function char ret_data_ptr prototype
params value long ptr, value uint ret_length
*
* return a memory location as a byte
*
function byte ret_byte_ptr prototype
params value long ptr
*
* return a memory location as a int
*
function int ret_int_ptr prototype
params value long ptr
*
* return a memory location as a uint
*
function uint ret_uint_ptr prototype
params value long ptr
*
* return a memory location as a long
*
function long ret_long_ptr prototype
params value long ptr
*
* return a memory location as a ulong
*
function ulong ret_ulong_ptr prototype
params value long ptr
*
* return a memory location as a real
*
function dbl ret_dbl_ptr prototype
params value long ptr
*
* return a memory location as a date
*
function date ret_date_ptr prototype
params value long ptr
*
* perform an interrupt using regs_ptr, returns filled regs_ptr and carry_flag
*
procedure interrupt prototype
params value byte int_no, untyped regs_ptr
*--- standard register definition
*
* usage : interrupt(0x??, al), logical carry_flag is set at return
vardef extern
*--- registers
byte al, ah
uint ax based al
byte bl, bh
uint bx based bl
byte cl, ch
uint cx based cl
byte dl, dh
uint dx based dl
*--- segments / pointers
uint si, di, bp, ds, es
logical carry_flag
enddef
* eof - fc_mem.hdr