Comments (3)
Apesar de não conseguir reproduzir a issue exatamente como descrito, o montador deveria emitir uma mensagem de erro mesmo, e ele não emite, então essa parte consegui reproduzir.
Só pra deixar registrado, o comportamento atual tentando montar o seguinte exemplo:
FOO LV /0
FOO LV /1
BAR LD FOO
é
$ cargo run --bin mvn-cli -- assemble -i example.asm
Finished dev [unoptimized + debuginfo] target(s) in 0.03s
Running `target/debug/mvn-cli assemble -i example.asm`
0000 3000
0002 3005
0004 8002
from mvn-rs.
O conserto vai ser adicionar mais um caso de validação no validator.rs
do montador, e claro testes pra garantir que a gente não regrida pra esse caso de novo.
Deve ser bem direto.
from mvn-rs.
Na verdade vai ser mais complexo do que isso porque hoje só existem validações de linha, não validações de arquivo todo:
mvn-rs/mvn-assembler/src/processor/validator.rs
Lines 9 to 24 in 2048da9
Vamos precisar implementar um ProgramValidator
também para verificar essas e outras condições de erro que só conseguimos detectar analisando o arquivo todo (como #19)
from mvn-rs.
Related Issues (20)
- Inplementar pseudo instrução $
- Implementar pseudo instrução #
- Implemetar pseudo instrução K
- "Montador" em inglês é "assembler"
- Handle invalid mneumonics
- Should error handling be eager or lazy? HOT 1
- Introduce error handling into the assembler HOT 4
- Introduce warnings into the assembler
- Documentation
- CI fails from lack of `.env` we want to keep secret HOT 3
- Implement modular CLI in all binary crates
- Replace some `panic!` with proper error treatment
- Replace `set-output` on release Action
- Generate warning or error on overwriting of memory regions
- CI runs twice on tags committed to `main`
- Add tests to avoid regression in assembler annotations
- Add binary support for Apple Silicon HOT 5
- Add Dockerfile to make compiler more portable HOT 6
- Errors return 0 exit code
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mvn-rs.