Digital Research
This commit is contained in:
2020-11-06 18:50:37 +01:00
parent 621ed8ccaf
commit 31738079c4
8481 changed files with 1888323 additions and 0 deletions

View File

@@ -0,0 +1,2 @@
c68 -c -g c68end.c
as68 -u c680.s

View File

@@ -0,0 +1,2 @@
c68 -c -g c68end.c
as68 -u c680.s

View File

@@ -0,0 +1,11 @@
* Initial start up for programs on Regulus, loaded at location 0 of
* program.
.globl _main,_exit,_environ
ori.b #0,d0 // 0 at 0 changed 29 Aug 1983
move.l 6(sp),_environ //save ptr to environment block
jsr _main //call main routine
move #0,-(sp) //do an exit(0)
jsr _exit
.bss
_environ: .ds 4 //four bytes for ptr
.end

View File

@@ -0,0 +1,11 @@
* Initial start up for programs on Regulus, loaded at location 0 of
* program.
.globl _main,_exit,_environ
ori.b #0,d0 // 0 at 0 changed 29 Aug 1983
move.l 6(sp),_environ //save ptr to environment block
jsr _main //call main routine
move #0,-(sp) //do an exit(0)
jsr _exit
.bss
_environ: .ds 4 //four bytes for ptr
.end

View File

@@ -0,0 +1,22 @@
/* @(#)end.c 2.3 */
/* if you need more space for string constants, increase size of __buffer */
char __buffer[200];
char _bufMax; /* used only to size the buffer */
_end_()
{
int x;
x = 1; /* just something to hang a breakpoint on - see proc.c */
/* If you want to force certain routines from the standard libraries to be
* available during debugging, place a reference to them here. It is not
* necessary for the call to be a 'complete' one, just enough to force the
* loader to bring it in. For example, saying:
printf();
* is sufficient to load printf (assuming that it wasn't already
* referenced in your normal program modules.
*
* If you do this, do it to YOUR OWN COPY(!!) of end.c, not the main one!
*/
}

View File

@@ -0,0 +1,22 @@
/* @(#)end.c 2.3 */
/* if you need more space for string constants, increase size of __buffer */
char __buffer[200];
char _bufMax; /* used only to size the buffer */
_end_()
{
int x;
x = 1; /* just something to hang a breakpoint on - see proc.c */
/* If you want to force certain routines from the standard libraries to be
* available during debugging, place a reference to them here. It is not
* necessary for the call to be a 'complete' one, just enough to force the
* loader to bring it in. For example, saying:
printf();
* is sufficient to load printf (assuming that it wasn't already
* referenced in your normal program modules.
*
* If you do this, do it to YOUR OWN COPY(!!) of end.c, not the main one!
*/
}