diff options
author | Ben Burwell <ben@benburwell.com> | 2015-04-01 20:32:27 -0400 |
---|---|---|
committer | Ben Burwell <ben@benburwell.com> | 2015-04-01 20:32:27 -0400 |
commit | 684fc27f6389f44102b5a3b31f62badc35a9a9ce (patch) | |
tree | 016c28c9b7501475bff2075ba660477e7eec491d /printer.c | |
parent | 2b30f30a330ee9bc9feb9ec4e55c8b6f3e6eb8fe (diff) |
as of 2013-12-042013-12-04
Diffstat (limited to 'printer.c')
-rw-r--r-- | printer.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -10,7 +10,6 @@ #include "mpx.h";
void interrupt (*vect0f)();
-dcb prt;
int prt_opened;
@@ -48,7 +47,7 @@ int prt_open(int * prt_flag) { return 0;
}
-int prt_write(char far *buffer, int *length) {
+int prt_write(char far *buffer, int far *length) {
unsigned char pcr;
disable();
@@ -133,7 +132,7 @@ void interrupt prt_int() { // call io-complete
// TODO: the book says (pg 86) that there should be stuff passed to io-complete
- IO_complete(2, lst_stk);
+ IO_complete(PRT, lst_stk);
// send end of interrupt signal
outportb(0x20, 0x20);
|