view bootpack.c @ 0:1a23828953f2

haribote day 4
author mir3636
date Wed, 03 Oct 2018 21:06:50 +0900
parents
children 461420da09c6
line wrap: on
line source

extern void _io_hlt(void);
extern void _write_mem8(int addr, int data);

void HariMain(void) {
    int i;
    
    for (i = 0xa0000; i <= 0xaffff; i++) {
        _write_mem8(i,i & 0x0f);
    }

fin:
    _io_hlt(); //これでnasmfunc.asmのio_hltが実行される
    goto fin;

}