kierenj / 0x10c-DevKit

0x10c DevKit
http://0x10c-devkit.com/
39 stars 4 forks source link

Issue Building Solution #218

Open theoemms opened 11 years ago

theoemms commented 11 years ago

I encountered a bug where, upon attempting to run a .10c file, the build output hangs on "Building Solution...", the "0x10c DevKit has encountered a problem" window pops up, which when closed causes the program to crash. I'm running on a MacBook, with Windows7 bootcamp. I really love using your DevKit, I've not done a lot of assembly before and I've learnt so much using your software.

This is the code that causes the issue:

:writeNullTerminated
SET PUSH, X
SET PUSH, A
    SET A, [displayRAM]
    ADD A, [cursor_position]
    :writeNullTerminated_loop
        SET [A], [X]
        BOR [A}, [display_colours]
        ADD A, 1
        ADD X, 1
        IFE [X], 0
            SET PC, writeNullTerminated_end
    SET PC, writeNullTerminated_loop
:writeNullTerminated_end
    SUB A, [displayRAM]
    SET [cursor_position], A
SET A, POP
SET X, POP
SET PC, POP

The error is caused by the curly bracket being used in place of the square bracket here:

BOR [A}, [display_colours]

But, no useful error output is given, the whole IDE crashes.

Many Thanks,

Theo