Skip to content

Commit

Permalink
Merge pull request #3 from z80andrew/development
Browse files Browse the repository at this point in the history
Development
  • Loading branch information
z80andrew authored Apr 22, 2019
2 parents 9c635d4 + 513cacb commit 51bc51a
Show file tree
Hide file tree
Showing 33 changed files with 1,863 additions and 896 deletions.
12 changes: 9 additions & 3 deletions SerialDisk.sln
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
VisualStudioVersion = 15.0.28307.271
# Visual Studio Version 16
VisualStudioVersion = 16.0.28809.33
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SerialDisk", "SerialDisk\SerialDisk.csproj", "{CB3C3328-28E0-4245-87DC-19D066AA33ED}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "SerialDisk", "SerialDisk\SerialDisk.csproj", "{CB3C3328-28E0-4245-87DC-19D066AA33ED}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SerialDiskTests", "SerialDiskTests\SerialDiskTests.csproj", "{091DC9EC-8E5C-4583-A681-D32C1502D3FB}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Expand All @@ -15,6 +17,10 @@ Global
{CB3C3328-28E0-4245-87DC-19D066AA33ED}.Debug|Any CPU.Build.0 = Debug|Any CPU
{CB3C3328-28E0-4245-87DC-19D066AA33ED}.Release|Any CPU.ActiveCfg = Release|Any CPU
{CB3C3328-28E0-4245-87DC-19D066AA33ED}.Release|Any CPU.Build.0 = Release|Any CPU
{091DC9EC-8E5C-4583-A681-D32C1502D3FB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{091DC9EC-8E5C-4583-A681-D32C1502D3FB}.Debug|Any CPU.Build.0 = Debug|Any CPU
{091DC9EC-8E5C-4583-A681-D32C1502D3FB}.Release|Any CPU.ActiveCfg = Release|Any CPU
{091DC9EC-8E5C-4583-A681-D32C1502D3FB}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down
89 changes: 89 additions & 0 deletions SerialDisk/Atari/asm/bios.asm
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

163 changes: 163 additions & 0 deletions SerialDisk/Atari/asm/gemdos.asm
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

Loading

0 comments on commit 51bc51a

Please sign in to comment.