Newer
Older
Scratch / ubix3 / src / bin / test.c
@Christopher W. Olsen Christopher W. Olsen on 25 Oct 2019 621 bytes Scratch
/**************************************************************************************
$Id: test.c,v 1.15 2002/04/28 18:08:56 reddawg Exp $


**************************************************************************************/

int main() {
  unsigned char *msg = (char *)0x900000;
  msg[0] = 'b';
  msg[1] = 'l';
  msg[2] = 'a';
  msg[3] = 'h';
  msg[4] = '\n';
  while (1) {
  asm(
    "movl $0x01, %eax\n"
    "movl $0x900000, %ebx\n"
    "int $0x80\n"
    "movl $0x02, %eax\n"
    "movl $0x990000, %ebx\n"
    "int $0x80\n"
    "movl $0x01, %eax\n"
    "movl $0x990000, %ebx\n"
    "int $0x80\n"
    );
    }
  }