mirror of
https://github.com/dschmenk/PLASMA.git
synced 2025-08-09 01:25:00 +00:00
Make sure all module functin tables are at the beginning of the module
This commit is contained in:
@@ -4,5 +4,5 @@ import testlib
|
|||||||
const hex = 2
|
const hex = 2
|
||||||
const newln = 4
|
const newln = 4
|
||||||
const str = 6
|
const str = 6
|
||||||
const char = 8
|
const chr = 8
|
||||||
end
|
end
|
||||||
|
@@ -22,6 +22,9 @@ const hgr1 = $2000
|
|||||||
const hgr2 = $4000
|
const hgr2 = $4000
|
||||||
const page1 = 0
|
const page1 = 0
|
||||||
const page2 = 1
|
const page2 = 1
|
||||||
|
//
|
||||||
|
// External interface
|
||||||
|
//
|
||||||
struc t_conio
|
struc t_conio
|
||||||
word keypressed
|
word keypressed
|
||||||
word home
|
word home
|
||||||
@@ -39,6 +42,22 @@ end
|
|||||||
predef a2keypressed,a2home,a2gotoxy(x,y),a2viewport(left, top, width, height),a2texttype(type)
|
predef a2keypressed,a2home,a2gotoxy(x,y),a2viewport(left, top, width, height),a2texttype(type)
|
||||||
predef a2textmode(cols),a2grmode(mix),a2grcolor(color),a2grplot(x,y)
|
predef a2textmode(cols),a2grmode(mix),a2grcolor(color),a2grplot(x,y)
|
||||||
//
|
//
|
||||||
|
// Exported function table.
|
||||||
|
//
|
||||||
|
export word conio[]
|
||||||
|
//
|
||||||
|
// Function pointers.
|
||||||
|
//
|
||||||
|
word = @a2keypressed
|
||||||
|
word = @a2home
|
||||||
|
word = @a2gotoxy
|
||||||
|
word = @a2viewport
|
||||||
|
word = @a2texttype
|
||||||
|
word = @a2textmode
|
||||||
|
word = @a2grmode
|
||||||
|
word = @a2grcolor
|
||||||
|
word = @a2grplot
|
||||||
|
//
|
||||||
// Screen row address arrays.
|
// Screen row address arrays.
|
||||||
//
|
//
|
||||||
word txt1scrn[] = $0400,$0480,$0500,$0580,$0600,$0680,$0700,$0780
|
word txt1scrn[] = $0400,$0480,$0500,$0580,$0600,$0680,$0700,$0780
|
||||||
@@ -61,22 +80,6 @@ byte textclrmode[] = 2, 16, 1
|
|||||||
byte grcharset[] = 1, 0, $7F, $7F, $7F, $7F, $00, $00, $00, $00
|
byte grcharset[] = 1, 0, $7F, $7F, $7F, $7F, $00, $00, $00, $00
|
||||||
byte devcons
|
byte devcons
|
||||||
//
|
//
|
||||||
// Exported function table.
|
|
||||||
//
|
|
||||||
export word conio[]
|
|
||||||
//
|
|
||||||
// Function pointers.
|
|
||||||
//
|
|
||||||
word = @a2keypressed
|
|
||||||
word = @a2home
|
|
||||||
word = @a2gotoxy
|
|
||||||
word = @a2viewport
|
|
||||||
word = @a2texttype
|
|
||||||
word = @a2textmode
|
|
||||||
word = @a2grmode
|
|
||||||
word = @a2grcolor
|
|
||||||
word = @a2grplot
|
|
||||||
//
|
|
||||||
// Native routines.
|
// Native routines.
|
||||||
//
|
//
|
||||||
asm equates
|
asm equates
|
||||||
|
@@ -20,7 +20,7 @@ const O_READ_WRITE = 3
|
|||||||
//
|
//
|
||||||
const sysbuf = $0800
|
const sysbuf = $0800
|
||||||
//
|
//
|
||||||
// All our file I/O routines
|
// External interface
|
||||||
//
|
//
|
||||||
struc t_fileio
|
struc t_fileio
|
||||||
word getpfx
|
word getpfx
|
||||||
|
Reference in New Issue
Block a user