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

Arrumando o issue #1 #2

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion bits/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,11 @@ def vm_test(f, time=100000):
def nasm_test(nasm, ram, test, time=1000):
name = getName(nasm)
hack = name + ".hack"
nasm_to_hack(nasm, hack)
path_atual = os.getcwd()
if path_atual[-8:] == '/sw/nasm':
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

eu não gostei da solução, pq ela continua sendo especifica. Não teria outro jeito? Eu acho que temos que mexer no pytest e não aqui.

nasm_to_hack(nasm, hack)
else:
nasm_to_hack(f'sw/nasm/{nasm}', hack)
rom = rom_init_from_hack(hack)

run = proc_run(name, rom, ram, time)
Expand Down