OpenCores
URL https://opencores.org/ocsvn/eco32/eco32/trunk

Subversion Repositories eco32

[/] [eco32/] [trunk/] [fp/] [implementation/] [mmix/] [cp.mms] - Blame information for rev 214

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 15 hellwig
% copy from StdIn to StdOut, no error checking
2
     LOC  Data_Segment
3
     GREG @
4
ArgR OCTA Buf,2  one char at a time
5
ArgW OCTA Buf,1  ditto
6
Buf  LOC  @+2
7
 
8
     LOC  #100
9
Main LDA  $255,ArgR
10
     TRAP 0,Fgets,StdIn
11
     BN   $255,Done
12
     LDA  $255,ArgW
13
     TRAP 0,Fwrite,StdOut
14
     JMP  Main
15
Done TRAP 0,0,Halt

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.