yppasswd
tar xvf lab1.tar cd lab1 ls -l
bash$ ls -la total 9 -rw-r--r-- 1 gaius 118 Jun 26 09:57 .gdbinit -rw-r--r-- 1 gaius 775 Sep 28 12:54 Debug.def -rw-r--r-- 1 gaius 1274 Sep 28 12:58 Debug.mod -rw-r--r-- 1 gaius 1274 Sep 28 12:58 Debug.c -rw-r--r-- 1 gaius 144 Sep 28 12:54 ass1.mod -rw-r--r-- 1 gaius 0 Sep 28 12:54 depend -rw-r--r-- 1 gaius 4592 Aug 1 16:17 make.rules -rw-r--r-- 1 gaius 1482 Sep 28 12:54 makefile

cd lab1 make c
make
make bootdisk dd if=image of=/dev/fd0 bs=18k
void Debug_DebugString
(char *a, unsigned int high)
{
/* foreach character in "a"
if the sequence "\" "n" is seen
then
generate a newline
else
print character to the screen
end
end */
}
#define ASCII_cr ’\r’
#define ASCII_lf ’\n’
#define ASCII_null ’\0’
/*
* WriteLn - writes a carriage return and a
* newline character.
*/
static void WriteLn (void)
{
Scn_Write(ASCII_cr);
Scn_Write(ASCII_lf);
}
/*
* DebugString - writes a string to
* the debugging device (Scn_Write).
* It interprets \n as
* carriage return, linefeed.
*/
void Debug_DebugString (char *a,
unsigned int high)
{
OnOrOff OldInterruptState
= SYSTEM_TurnInterrupts(Off);
unsigned int n = 0;
/* your code needs to go here */
OldInterruptState
= SYSTEM_TurnInterrupts(OldInterruptState);
}
This document was produced using groff-1.19.