MegaProcessor

Check-in [6dba3c8041]
Login

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

Overview
Comment:A little extra in the symbol-table dump : decimal format besides hex.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:6dba3c8041d04154b721cbc73f7dda2461202175
User & Date: jos 2015-08-22 16:18:06
Context
2015-08-22
17:59
Have the EQU directive only handled in pass 1, and fix a list-file issue for the ORG directive. check-in: 34e6793e25 user: jos tags: trunk
16:18
A little extra in the symbol-table dump : decimal format besides hex. check-in: 6dba3c8041 user: jos tags: trunk
16:17
Attempted improvements on handling of db, dw, dl directives. check-in: 8769e987b7 user: jos tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to symtab.lua.

26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
end

function symtab_dump()
    Printf( "\n-------- SYMBOLS -------\n" );
    if( symCount == 0 ) then Printf("no symbols defined\n"); return; end;

    for k,v in pairs(symtab) do
        Printf("%32.32s : 0x%04x\n", k, v );
    end
end

ProgramCounter = 0;

function PC_reset()
    ProgramCounter = 0;







|







26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
end

function symtab_dump()
    Printf( "\n-------- SYMBOLS -------\n" );
    if( symCount == 0 ) then Printf("no symbols defined\n"); return; end;

    for k,v in pairs(symtab) do
        Printf("%32.32s : 0x%04x (%d)\n", k, v, v );
    end
end

ProgramCounter = 0;

function PC_reset()
    ProgramCounter = 0;