2011-01-28 14:00:06 +01:00
|
|
|
use32
|
2020-11-02 19:44:51 +01:00
|
|
|
org 0
|
2011-01-28 14:00:06 +01:00
|
|
|
db 'MENUET01'
|
2020-11-02 19:44:51 +01:00
|
|
|
dd 1
|
|
|
|
dd @Kolibri@Main$qv
|
2011-01-28 14:00:06 +01:00
|
|
|
dd I_END
|
|
|
|
dd U_END+STACKSIZE+HEAPSIZE
|
|
|
|
dd U_END+STACKSIZE
|
2020-11-02 19:44:51 +01:00
|
|
|
dd @Kolibri@CommandLine,0
|
2011-01-28 14:00:06 +01:00
|
|
|
|
|
|
|
ptr equ
|
|
|
|
offset equ
|
|
|
|
short equ
|
|
|
|
tbyte equ tword
|
|
|
|
|
|
|
|
PTR equ
|
|
|
|
OFFSET equ
|
|
|
|
SHORT equ
|
|
|
|
TBYTE equ TWORD
|
|
|
|
|
|
|
|
macro movsb a,b
|
|
|
|
{
|
|
|
|
if a eq & b eq
|
|
|
|
movsb
|
|
|
|
else
|
|
|
|
movsx a,b
|
|
|
|
end if
|
|
|
|
}
|
|
|
|
|
|
|
|
macro movsw a,b
|
|
|
|
{
|
|
|
|
if a eq & b eq
|
|
|
|
movsw
|
|
|
|
else
|
|
|
|
movsx a,b
|
|
|
|
end if
|
|
|
|
}
|
|
|
|
|
|
|
|
macro segment name {}
|
|
|
|
|
|
|
|
macro endseg name {}
|
|
|
|
|
|
|
|
macro usedef [link]
|
|
|
|
{
|
|
|
|
common
|
|
|
|
if ~link eq
|
|
|
|
virtual at 0
|
|
|
|
forward
|
2020-11-04 22:02:21 +01:00
|
|
|
dd link
|
2011-01-28 14:00:06 +01:00
|
|
|
common
|
|
|
|
end virtual
|
|
|
|
end if
|
|
|
|
}
|
|
|
|
|
2020-11-05 15:17:36 +01:00
|
|
|
macro define x,[link]
|
2011-01-28 14:00:06 +01:00
|
|
|
{
|
|
|
|
common
|
|
|
|
if x eq
|
|
|
|
else if used x
|
|
|
|
x:
|
|
|
|
usedef link
|
|
|
|
}
|
|
|
|
|
|
|
|
macro enddef [link]
|
|
|
|
{
|
|
|
|
common
|
|
|
|
usedef link
|
|
|
|
end if
|
|
|
|
}
|
|
|
|
|
|
|
|
macro newdef x,[link]
|
|
|
|
{
|
|
|
|
common
|
|
|
|
end if
|
|
|
|
if x eq
|
|
|
|
else if used x
|
|
|
|
x:
|
|
|
|
usedef link
|
|
|
|
}
|
|
|
|
|
2020-11-02 19:44:51 +01:00
|
|
|
macro nextdef x
|
2011-01-28 14:00:06 +01:00
|
|
|
{
|
2020-11-02 19:44:51 +01:00
|
|
|
x:
|
2011-01-28 14:00:06 +01:00
|
|
|
}
|
2020-11-02 19:44:51 +01:00
|
|
|
|