From c6e342f93d1a7fe92d2a7e1b4e488f328e1f4469 Mon Sep 17 00:00:00 2001 From: Flavian Kaufmann Date: Thu, 23 May 2024 07:04:37 +0200 Subject: align --- prog/Makefile | 2 +- prog/src/main.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'prog') 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; } } -- cgit v1.2.3