view lib/kreiderclib/fread.as @ 3285:345ff5806dd7

Correct coco.d filename in shipped Defsfile files It seems that 8 years ago in commit 2624:b8c7b7fbf3c9 the coco defs were put into a new "coco.d" (from "systype"), and the various level*/<port>/defsfile were updated. However, the level*/<port>/defs/Defsfile (that are copied to the disk images under DEFS) were apparently wrongly updated.
author hpmachining <aur@hpminc.com>
date Thu, 18 Jun 2020 20:29:32 +0200
parents 1647f1874cdf
children
line wrap: on
line source

* Disassembly by Os9disasm of fread.r

 section code

fread: pshs  d,x,u 
 ldu   8,s 
 clra   
 clrb   
 bra   L002b 
L0008 ldd   10,s 
 bra   L0022 
L000c ldd   14,s 
 pshs  d 
 lbsr  getc 
 leas  2,s 
 cmpd  #-1 
 beq   L0032 
 stb   ,u+ 
 ldd   ,s 
 subd  #1 
L0022 std   ,s 
 bne   L000c 
 ldd   2,s 
 addd  #1 
L002b std   2,s 
 cmpd  12,s 
 blt   L0008 
L0032 leas  2,s 
 puls  d,u,pc 

 endsect