# HG changeset patch # User John Tsiombikas # Date 1298393504 -7200 # Node ID eaec918de07266a57a60a1945bc8e89f933dad04 # Parent cccaa40f5432afcb4aa1a30896cb8d18a6f8fead - fixed the scrolling issue - other minor crap diff -r cccaa40f5432 -r eaec918de072 src/intr.c --- a/src/intr.c Sat Feb 19 04:41:51 2011 +0200 +++ b/src/intr.c Tue Feb 22 18:51:44 2011 +0200 @@ -159,7 +159,7 @@ desc->d[3] = (addr & 0xffff0000) >> 16; } -#define IS_TRAP(n) ((n) < 20 && (n) != 2) +#define IS_TRAP(n) ((n) < 32) static void set_intr_entry(int num, void (*handler)(void)) { int type = IS_TRAP(num) ? GATE_TRAP : GATE_INTR; diff -r cccaa40f5432 -r eaec918de072 src/main.c --- a/src/main.c Sat Feb 19 04:41:51 2011 +0200 +++ b/src/main.c Tue Feb 22 18:51:44 2011 +0200 @@ -46,6 +46,8 @@ set_text_color(LTGRAY); puts("hello world!"); + asm volatile("int $0x80"); + for(;;) { char c, keypress; do { diff -r cccaa40f5432 -r eaec918de072 src/vid.c --- a/src/vid.c Sat Feb 19 04:41:51 2011 +0200 +++ b/src/vid.c Tue Feb 22 18:51:44 2011 +0200 @@ -3,7 +3,7 @@ #include "asmops.h" /* height of our virtual console text buffer */ -#define VIRT_HEIGHT 1024 +#define VIRT_HEIGHT 200 /* CRTC ports */ #define CRTC_ADDR 0x3d4 @@ -60,7 +60,7 @@ /* The bottom of the visible range reached the end of our text buffer. * Copy the rest of the lines to the top and reset start_line. */ - memcpy(vmem, vmem + start_line * WIDTH, (HEIGHT - 1) * WIDTH); + memcpy(vmem, vmem + start_line * WIDTH, (HEIGHT - 1) * WIDTH * 2); start_line = 0; }