mirror of
https://github.com/SEPPDROID/Digital-Research-Source-Code.git
synced 2025-10-24 08:54:17 +00:00
Upload
Digital Research
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
c68 -c -g c68end.c
|
||||
as68 -u c680.s
|
||||
@@ -0,0 +1,2 @@
|
||||
c68 -c -g c68end.c
|
||||
as68 -u c680.s
|
||||
11
CPM OPERATING SYSTEMS/CPM 68K/1.0X SOURCES/v102a/misc/c680.s
Normal file
11
CPM OPERATING SYSTEMS/CPM 68K/1.0X SOURCES/v102a/misc/c680.s
Normal 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
|
||||
@@ -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
|
||||
@@ -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!
|
||||
*/
|
||||
}
|
||||
@@ -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!
|
||||
*/
|
||||
}
|
||||
Reference in New Issue
Block a user