aboutsummaryrefslogtreecommitdiff
path: root/prog
diff options
context:
space:
mode:
Diffstat (limited to 'prog')
-rw-r--r--prog/Makefile2
-rw-r--r--prog/src/main.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/prog/Makefile b/prog/Makefile
index a5dfeaa..11a1f9b 100644
--- a/prog/Makefile
+++ b/prog/Makefile
@@ -53,7 +53,7 @@ $(BUILD_DIR):
# create objdump of elf file and print
objdump: $(ELF_FILE)
- $(RISCV_OBJDUMP) -d -x --disassembler-color=on $(ELF_FILE)
+ $(RISCV_OBJDUMP) -D -x -s --disassembler-color=on $(ELF_FILE)
# display size information of elf file
size: $(ELF_FILE)
diff --git a/prog/src/main.c b/prog/src/main.c
index a31196f..a721e14 100644
--- a/prog/src/main.c
+++ b/prog/src/main.c
@@ -6,7 +6,7 @@ volatile uint32_t *io_out = (volatile uint32_t *)0x00000004;
int main(void) {
while (1) {
- if (*io_in) *io_out = 0b00000;
- else *io_out = 0b11111;
+ if (*io_in) *io_out = 0b11111;
+ else *io_out = 0b00000;
}
}