-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from z80andrew/development
Development
- Loading branch information
Showing
33 changed files
with
1,863 additions
and
896 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
.macro Bconin dev | ||
move \dev,-(sp) | ||
move #2,-(sp) | ||
trap #13 | ||
addq #4,sp | ||
.endm | ||
|
||
.macro Bconout dev, c | ||
move \c,-(sp) | ||
move \dev,-(sp) | ||
move #3,-(sp) | ||
trap #13 | ||
addq #6,sp | ||
.endm | ||
|
||
.macro Bconstat dev | ||
move \dev,-(sp) | ||
move #1,-(sp) | ||
trap #13 | ||
addq #4,sp | ||
.endm | ||
|
||
.macro Bcostat dev | ||
move \dev,-(sp) | ||
move #8,-(sp) | ||
trap #13 | ||
addq #4,sp | ||
.endm | ||
|
||
.macro Drvmap | ||
move #10,-(sp) | ||
trap #13 | ||
addq #2,sp | ||
.endm | ||
|
||
.macro Getbpb dev | ||
move \dev,-(sp) | ||
move #7,-(sp) | ||
trap #13 | ||
addq #4,sp | ||
.endm | ||
|
||
.macro Getmpb p_mpb | ||
pea \p_mpb | ||
clr -(sp) | ||
trap #13 | ||
addq #6,sp | ||
.endm | ||
|
||
.macro Kbshift mode | ||
move \mode,-(sp) | ||
move #11,-(sp) | ||
trap #13 | ||
addq #4,sp | ||
.endm | ||
|
||
.macro Mediach dev | ||
move \dev,-(sp) | ||
move #9,-(sp) | ||
trap #13 | ||
addq #4,sp | ||
.endm | ||
|
||
.macro Rwabs rwflag, buf, count, recno, dev, lrecno | ||
move.l \lrecno,-(sp) | ||
move \dev,-(sp) | ||
move \recno,-(sp) | ||
move \count,-(sp) | ||
pea \buf | ||
move \rwflag,-(sp) | ||
move #4,-(sp) | ||
trap #13 | ||
lea $12(sp),sp | ||
.endm | ||
|
||
.macro Setexc vecnum, vec | ||
pea \vec | ||
move \vecnum,-(sp) | ||
move #5,-(sp) | ||
trap #13 | ||
addq #8,sp | ||
.endm | ||
|
||
.macro Tickcal | ||
move #6,-(sp) | ||
trap #13 | ||
addq #2,sp | ||
.endm | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,163 @@ | ||
.macro Cauxin | ||
move #3,-(sp) | ||
trap #1 | ||
addq #2,sp | ||
.endm | ||
|
||
.macro Cauxis | ||
move #18,-(sp) | ||
trap #1 | ||
addq #2,sp | ||
.endm | ||
|
||
.macro Cauxos | ||
move #19,-(sp) | ||
trap #1 | ||
addq #2,sp | ||
.endm | ||
|
||
.macro Cauxout c | ||
move \c,-(sp) | ||
move #4,-(sp) | ||
trap #1 | ||
addq #4,sp | ||
.endm | ||
|
||
.macro Cconin | ||
move #1,-(sp) | ||
trap #1 | ||
addq #2,sp | ||
.endm | ||
|
||
.macro Cconis | ||
move #11,-(sp) | ||
trap #1 | ||
addq #2,sp | ||
.endm | ||
|
||
.macro Cconos | ||
move #16,-(sp) | ||
trap #1 | ||
addq #2,sp | ||
.endm | ||
|
||
.macro Cconout c | ||
move \c,-(sp) | ||
move #2,-(sp) | ||
trap #1 | ||
addq #4,sp | ||
.endm | ||
|
||
.macro Cconws str | ||
pea \str | ||
move #9,-(sp) | ||
trap #1 | ||
addq #6,sp | ||
.endm | ||
|
||
.macro Fclose handle | ||
move \handle,-(sp) | ||
move #62,-(sp) | ||
trap #1 | ||
addq #4,sp | ||
.endm | ||
|
||
.macro Fcreate fname, attribs | ||
move \attribs,-(sp) | ||
pea \fname | ||
move #60,-(sp) | ||
trap #1 | ||
addq #8,sp | ||
.endm | ||
|
||
.macro Fopen fname, mode | ||
move \mode,-(sp) | ||
pea \fname | ||
move #61,-(sp) | ||
trap #1 | ||
addq #8,sp | ||
.endm | ||
|
||
.macro Fread handle, count, buffer | ||
pea \buffer | ||
move.l \count,-(sp) | ||
move \handle,-(sp) | ||
move #63,-(sp) | ||
trap #1 | ||
lea 12(sp),sp | ||
.endm | ||
|
||
.macro Fwrite handle, count, buffer | ||
pea \buffer | ||
move.l \count,-(sp) | ||
move \handle,-(sp) | ||
move #64,-(sp) | ||
trap #1 | ||
lea 12(sp),sp | ||
.endm | ||
|
||
.macro Fseek offset, handle, seekmode | ||
move \seekmode,-(sp) | ||
move \handle,-(sp) | ||
move.l \offset,-(sp) | ||
move #66,-(sp) | ||
trap #1 | ||
lea 10(sp),sp | ||
.endm | ||
|
||
.macro Mxalloc amount, mode | ||
move \mode,-(sp) | ||
move.l \amount,-(sp) | ||
move #68,-(sp) | ||
trap #1 | ||
addq #8,sp | ||
.endm | ||
|
||
.macro Malloc amount | ||
move.l \amount,-(sp) | ||
move #72,-(sp) | ||
trap #1 | ||
addq #6,sp | ||
.endm | ||
|
||
.macro Mfree saddr | ||
pea \saddr | ||
move #73,-(sp) | ||
trap #1 | ||
addq #6,sp | ||
.endm | ||
|
||
.macro Mshrink block, newsize | ||
move.l \newsize,-(sp) | ||
pea \block | ||
clr -(sp) | ||
move #74,-(sp) | ||
trap #1 | ||
lea 12(sp),sp | ||
.endm | ||
|
||
.macro Pterm0 | ||
clr -(sp) | ||
trap #1 | ||
.endm | ||
|
||
.macro Pterm retcode | ||
move \retcode,-(sp) | ||
move #76,-(sp) | ||
trap #1 | ||
.endm | ||
|
||
.macro Ptermres keep, ret | ||
move \ret,-(sp) | ||
move.l \keep,-(sp) | ||
move #49,-(sp) | ||
trap #1 | ||
.endm | ||
|
||
.macro Super stack | ||
pea \stack | ||
move #32,-(sp) | ||
trap #1 | ||
addq #6,sp | ||
.endm | ||
|
Oops, something went wrong.