Rev 20 | Blame | Compare with Previous | Last modification | View Log | Download
;startupTRUE=0xffFALSE=0x00org 0x6000jp startup._=$include "compcode.dcl"incbin "compcode.bin"startup.;pop hl;push hl;ld a,h;cp 0x3d;jr nz,start.;ld hl,start.;ld (23834),hl ;рфЁхё чряєёър;ld hl,467 ;т√їюф (шэрўх тючтЁрЄ т схщёшъ яюёых RUN "..." CODE эхтючьюцхэ);push hl;jp 0x3d2f ;call in DOS;start.LD HL,fnerr.LD [openwrite.A.],HLCALL openwriteLD [_ferr],HLLD A,TRUELD [_errs],Ald hl,fnbuf.ld (compile.fn),hlld hl,(23645) ;CH_ADDld bc,256ld a,234 ;REM;cpirdb 0xed,0xb1loop.dec hlld de,fnbuf.-1l0.inc hlinc deld a,(hl)ld (de),acp ' '+1jr nc,l0. ;read until space or CRxor ald (de),a ;'\0'push hlcall compilepop hlld a,(hl)cp 0x0d ;CRinc hljr nz,loop.LD HL,[_ferr]LD [fclose.A.],HLCALL fclose;ld hl,10072;exxretinclude "../_sdk/read.ast"include "compile.ast"fnbuf.db "12345678.123"db 0fnerr.db "err.f"db 0include "../_sdk/read.var"include "compile.var"