Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"unexpected align in text segment" error #125

Open
dahyun-neubla opened this issue Jun 20, 2024 · 1 comment
Open

"unexpected align in text segment" error #125

dahyun-neubla opened this issue Jun 20, 2024 · 1 comment

Comments

@dahyun-neubla
Copy link

Hi I am trying to run this piece of code on VS code.
It runs fine on venus web(https://thaumicmekanism.github.io/venus/).
Unfortunately it doesn't work on vs code.
Seems like it works fine when ".align 2" is removed.
But isn't align allowed in text?

  • Assembly code
    .text
    .align 2
    .globl main

main:
lui t0, 1 # t0 points to 0x1000
lw t1, 0(t0) # Load a into t1
lw t2, 4(t0) # Load b into t2
add t3, t1, t2 # t3 <- t1 + t2
sw t3, 8(t0) # Store t3 into c


  • Error message
AssemblerError: start.s:2: unexpected align in text segment
.align 2

Stop program execution!

===== VS code info=====
Version: 1.90.2 (user setup)
Commit: 5437499feb04f7a586f677b155b039bc2b3669eb
Date: 2024-06-18T22:34:26.404Z
Electron: 29.4.0
ElectronBuildId: 9728852
Chromium: 122.0.6261.156
Node.js: 20.9.0
V8: 12.2.281.27-electron.0
OS: Windows_NT x64 10.0.19045

@wallento
Copy link
Contributor

wallento commented Aug 9, 2024

I suspect, we need to pull in a newer version of venus. Let me check

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants