aboutsummaryrefslogtreecommitdiff
path: root/prog
diff options
context:
space:
mode:
authorFlavian Kaufmann <flavian@flaviankaufmann.ch>2024-05-23 07:04:37 +0200
committerFlavian Kaufmann <flavian@flaviankaufmann.ch>2024-05-23 07:04:37 +0200
commitc6e342f93d1a7fe92d2a7e1b4e488f328e1f4469 (patch)
treea000085f4ce8d6dec3e90ecc230642eeb77d960f /prog
parentee94c97e4f8208d0c7404887cda16d00f67c6f1f (diff)
downloadriscv_cpu-c6e342f93d1a7fe92d2a7e1b4e488f328e1f4469.tar.gz
riscv_cpu-c6e342f93d1a7fe92d2a7e1b4e488f328e1f4469.zip
align
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;
}
}