/usr/share/z88dk/lib/init_far.asm is in z88dk-data 1.8.ds1-10.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 | ; Startup code for far memory model
; 31/3/00 GWL
; 21/5/00 Modified for more flexible CF-compatible structure arrangement
;
.init_far
IF DEFINED_far_mmset
ld a,MM_S1+MM_FIX
ELSE
ld a,MM_S1
ENDIF
ld (farmemspec),a ; initialise farmemspec
ld hl,1+(farheapsz/256)
ld (farpages),hl ; initialise farpages
add hl,hl
ld b,h
ld c,l
ld hl,actual_malloc_table
ld (malloc_table),hl ; initialise malloc_table
ld d,h
ld e,l
inc de
ld (hl),0
dec bc
ldir ; clear malloc_table
ld hl,pool_table
ld de,pool_table+1
ld bc,223
ld (hl),0
ldir ; clear pool_table
ret
|