| C言語でスーパーバイザCALL 全リスト(Z-80 Assembler & BDS-C) | ||||||||||||||||||||||||||
| by OOI(大井 暢浩) | ||||||||||||||||||||||||||
| ********* SVCREF.SCM ********* | ||||||||||||||||||||||||||
|
||||||||||||||||||||||||||
| ********* LINPUT.C ********* | ||||||||||||||||||||||||||
|
/************************* lineinput for cp/m **************************/ /* This program must call with 80 byte buffer. */ main() { char buff[80]; linput(buff); printf("%s\n",buff); } linput(buff) char *buff[]; { char acc; int hl, /* trans source adr. */ de, /* trans destination adr. */ bc, /* length */ cy; svcref(0x0c, &acc, &bc, &de, &hl, &cy); bc = 80; hl = 0x0a01; de = buff; call(0xe100 + 34 * 3, acc, hl, bc, de); } |
||||||||||||||||||||||||||
| 前のページに戻る |