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

Subversion Repositories eco32

[/] [eco32/] [trunk/] [fp/] [implementation/] [mmix/] [test.mms] - Blame information for rev 296

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

Line No. Rev Author Line
1 15 hellwig
% A peculiar example of MMIXAL
2
     LOC   Data_Segment  % location #2000000000000000
3
     OCTA  1F            % a future reference
4
a    GREG  @             % $254 is base register for ABCD
5
ABCD BYTE  "ab"          % two bytes of data
6
     LOC   #123456789    % switch to the instruction segment
7
Main JMP   1F            % another future reference
8
     LOC   @+#4000       % skip past 16384 bytes
9
2H   LDB   $3,ABCD+1     % use the base register
10
     BZ    $3,1F; TRAP   % and refer to the future again
11
# 3 "foo.mms"            % this comment is a line directive
12
     LOC   2B-4*10       % move 10 tetras before prev loc
13
1H   JMP   2B            % resolve previous references to 1F
14
     BSPEC 5             % begin special data of type 5
15
     TETRA &a<<8         % four bytes of special data
16
     WYDE  a-$0          % two more bytes of special data
17
     ESPEC               % end a special data packet
18
     LOC   ABCD+2        % resume the data segment
19
     BYTE  "cd",#98      % assemble three more bytes of data

powered by: WebSVN 2.1.0

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