MegaProcessor

Check-in [1b3f350d14]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Made function Error independent of Warn.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | trunk
Files: files | file ages | folders
SHA1:1b3f350d14003cab78bf9cd874a66bf21fa6a375
User & Date: jos 2015-10-22 17:54:09
Context
2015-10-22
17:54
Made function Error independent of Warn. Leaf check-in: 1b3f350d14 user: jos tags: trunk
16:56
Added warning when Immediate-format operand for LD.B instruction evaluates to word-size with MSB != 0. check-in: 8b4d99ed90 user: jos tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to lib.lua.

9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
end

function Warn( text )
    Printf("Warning : %s\n       ", text );  -- text with newline and some indent.
end

function Error( text )
    Warn( text );
    os.exit(-1);
end

function htob_2( s )
    local hi,lo = s:byte(1,2);
    local hiA,loA;








|







9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
end

function Warn( text )
    Printf("Warning : %s\n       ", text );  -- text with newline and some indent.
end

function Error( text )
    Printf("Line %04d : Error : %s", LineNr, text );
    os.exit(-1);
end

function htob_2( s )
    local hi,lo = s:byte(1,2);
    local hiA,loA;