parent
74c6ce3fe6
commit
aeb5354adf
193 changed files with 2345 additions and 131 deletions
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,87 @@ |
||||
// This file is part of www.nand2tetris.org |
||||
// and the book "The Elements of Computing Systems" |
||||
// by Nisan and Schocken, MIT Press. |
||||
// File name: projects/04/Fill.asm |
||||
|
||||
// Runs an infinite loop that listens to the keyboard input. |
||||
// When a key is pressed (any key), the program blackens the screen, |
||||
// i.e. writes "black" in every pixel; |
||||
// the screen should remain fully black as long as the key is pressed. |
||||
// When no key is pressed, the program clears the screen, i.e. writes |
||||
// "white" in every pixel; |
||||
// the screen should remain fully clear as long as no key is pressed. |
||||
|
||||
// Put your code here. |
||||
|
||||
//initialise R0 to point at start of screen |
||||
(START) |
||||
@SCREEN |
||||
D=A |
||||
@R0 |
||||
M=D |
||||
|
||||
//check if a key is pressed |
||||
(CHECK) |
||||
@KBD |
||||
D=M |
||||
|
||||
//if not: |
||||
//jump to no key |
||||
@NOKEY |
||||
D;JEQ |
||||
|
||||
//if so: |
||||
//blacken pixel at R0 |
||||
@32767 |
||||
D=A |
||||
@R0 |
||||
A=M |
||||
M=D |
||||
|
||||
//increment R0 |
||||
@R0 |
||||
M=M+1 |
||||
|
||||
//check if R0 != 24576 (end of screen) |
||||
@24576 |
||||
D=A |
||||
@R0 |
||||
D=D-M |
||||
|
||||
//if so: |
||||
//jump back to check |
||||
@CHECK |
||||
D;JNE |
||||
|
||||
//otherwise: |
||||
//jump back to start (reset R) |
||||
@START |
||||
0;JMP |
||||
|
||||
(NOKEY) |
||||
//check if R0 == SCREEN |
||||
@SCREEN |
||||
D=A |
||||
@R0 |
||||
D=D-M |
||||
|
||||
//if so: |
||||
//jump back to check |
||||
@CHECK |
||||
D;JEQ |
||||
|
||||
//otherwise: |
||||
//deincrement R0 |
||||
@R0 |
||||
M=M-1 |
||||
|
||||
//whiten pixel at R0 |
||||
@0 |
||||
D=A |
||||
@R0 |
||||
A=M |
||||
M=D |
||||
|
||||
//jump back to check |
||||
@CHECK |
||||
0;JMP |
@ -0,0 +1,48 @@ |
||||
// This file is part of www.nand2tetris.org |
||||
// and the book "The Elements of Computing Systems" |
||||
// by Nisan and Schocken, MIT Press. |
||||
// File name: projects/04/Mult.asm |
||||
|
||||
// Multiplies R0 and R1 and stores the result in R2. |
||||
// (R0, R1, R2 refer to RAM[0], RAM[1], and RAM[2], respectively.) |
||||
// |
||||
// This program only needs to handle arguments that satisfy |
||||
// R0 >= 0, R1 >= 0, and R0*R1 < 32768. |
||||
|
||||
// Put your code here. |
||||
|
||||
//initialise i to 0 |
||||
@i |
||||
M=0 |
||||
|
||||
//initalise R2 to 0 |
||||
@R2 |
||||
M=0 |
||||
|
||||
(LOOP) |
||||
|
||||
//jump to end if i-R1>= 0 |
||||
@i |
||||
D=M |
||||
@R1 |
||||
D=D-M |
||||
@END |
||||
D;JGE |
||||
|
||||
//increment i |
||||
@i |
||||
M=M+1 |
||||
|
||||
//R2 = R2+R0 |
||||
@R0 |
||||
D=M |
||||
@R2 |
||||
M=M+D |
||||
|
||||
//jump to start of loop |
||||
@LOOP |
||||
0;JMP |
||||
|
||||
(END) |
||||
@END |
||||
0;JMP |
@ -0,0 +1,87 @@ |
||||
// This file is part of www.nand2tetris.org |
||||
// and the book "The Elements of Computing Systems" |
||||
// by Nisan and Schocken, MIT Press. |
||||
// File name: projects/04/Fill.asm |
||||
|
||||
// Runs an infinite loop that listens to the keyboard input. |
||||
// When a key is pressed (any key), the program blackens the screen, |
||||
// i.e. writes "black" in every pixel; |
||||
// the screen should remain fully black as long as the key is pressed. |
||||
// When no key is pressed, the program clears the screen, i.e. writes |
||||
// "white" in every pixel; |
||||
// the screen should remain fully clear as long as no key is pressed. |
||||
|
||||
// Put your code here. |
||||
|
||||
//initialise R0 to point at start of screen |
||||
(START) |
||||
@SCREEN |
||||
D=A |
||||
@R0 |
||||
M=D |
||||
|
||||
//check if a key is pressed |
||||
(CHECK) |
||||
//@KBD |
||||
//D=M |
||||
|
||||
//if not: |
||||
//jump to no key |
||||
//@NOKEY |
||||
//D;JEQ |
||||
|
||||
//if so: |
||||
//blacken pixel at R0 |
||||
@32767 |
||||
D=A |
||||
@R0 |
||||
A=M |
||||
M=D |
||||
|
||||
//increment R0 |
||||
@R0 |
||||
M=M+1 |
||||
|
||||
//check if R0 != 24576 (end of screen) |
||||
@24576 |
||||
D=A |
||||
@R0 |
||||
D=D-M |
||||
|
||||
//if so: |
||||
//jump back to check |
||||
@CHECK |
||||
D;JNE |
||||
|
||||
//otherwise: |
||||
//jump back to start (reset R) |
||||
@START |
||||
0;JMP |
||||
|
||||
(NOKEY) |
||||
//check if R0 == SCREEN |
||||
@SCREEN |
||||
D=A |
||||
@R0 |
||||
D=D-M |
||||
|
||||
//if so: |
||||
//jump back to check |
||||
@CHECK |
||||
D;JEQ |
||||
|
||||
//otherwise: |
||||
//deincrement R0 |
||||
@R0 |
||||
M=M-1 |
||||
|
||||
//whiten pixel at R0 |
||||
@0 |
||||
D=A |
||||
@R0 |
||||
A=M |
||||
M=D |
||||
|
||||
//jump back to check |
||||
@CHECK |
||||
0;JMP |
@ -1 +0,0 @@ |
||||
{"rustc_fingerprint":7437628601159509931,"outputs":{"2797684049618456168":{"success":false,"status":"exit status: 1","code":1,"stdout":"","stderr":"error: `-Csplit-debuginfo` is unstable on this platform\n\n"},"17598535894874457435":{"success":true,"status":"","code":0,"stdout":"rustc 1.57.0\nbinary: rustc\ncommit-hash: unknown\ncommit-date: unknown\nhost: x86_64-unknown-linux-gnu\nrelease: 1.57.0\nLLVM version: 13.0.0\n","stderr":""},"931469667778813386":{"success":true,"status":"","code":0,"stdout":"___\nlib___.rlib\nlib___.so\nlib___.so\nlib___.a\nlib___.so\n/usr\ndebug_assertions\nproc_macro\ntarget_arch=\"x86_64\"\ntarget_endian=\"little\"\ntarget_env=\"gnu\"\ntarget_family=\"unix\"\ntarget_feature=\"fxsr\"\ntarget_feature=\"sse\"\ntarget_feature=\"sse2\"\ntarget_os=\"linux\"\ntarget_pointer_width=\"64\"\ntarget_vendor=\"unknown\"\nunix\n","stderr":""},"15537503139010883884":{"success":true,"status":"","code":0,"stdout":"___\nlib___.rlib\nlib___.so\nlib___.so\nlib___.a\nlib___.so\n","stderr":""}},"successes":{}} |
@ -1,3 +0,0 @@ |
||||
Signature: 8a477f597d28d172789f06886806bc55 |
||||
# This file is a cache directory tag created by cargo. |
||||
# For information about cache directory tags see https://bford.info/cachedir/ |
Binary file not shown.
@ -1 +0,0 @@ |
||||
This file has an mtime of when this was started. |
@ -1 +0,0 @@ |
||||
5403213c9906eba0 |
@ -1 +0,0 @@ |
||||
{"rustc":17278786309488306807,"features":"[]","target":9946130396266312125,"profile":9251013656241001069,"path":7356247636524780384,"deps":[],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/hack16-92f935f468a8b88b/dep-lib-hack16"}}],"rustflags":[],"metadata":7797948686568424061,"config":2202906307356721367,"compile_kind":0} |
@ -1,5 +0,0 @@ |
||||
{"message":"unnecessary parentheses around pattern","code":{"code":"unused_parens","explanation":null},"level":"warning","spans":[{"file_name":"hack16/src/translator.rs","byte_start":3639,"byte_end":3640,"line_start":148,"line_end":148,"column_start":9,"column_end":10,"is_primary":true,"text":[{"text":" (\"D+A\") | (\"A+D\") => Some(String::from(\"0000010\")),","highlight_start":9,"highlight_end":10}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"hack16/src/translator.rs","byte_start":3645,"byte_end":3646,"line_start":148,"line_end":148,"column_start":15,"column_end":16,"is_primary":true,"text":[{"text":" (\"D+A\") | (\"A+D\") => Some(String::from(\"0000010\")),","highlight_start":15,"highlight_end":16}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"`#[warn(unused_parens)]` on by default","code":null,"level":"note","spans":[],"children":[],"rendered":null},{"message":"remove these parentheses","code":null,"level":"help","spans":[{"file_name":"hack16/src/translator.rs","byte_start":3639,"byte_end":3640,"line_start":148,"line_end":148,"column_start":9,"column_end":10,"is_primary":true,"text":[{"text":" (\"D+A\") | (\"A+D\") => Some(String::from(\"0000010\")),","highlight_start":9,"highlight_end":10}],"label":null,"suggested_replacement":"","suggestion_applicability":"MachineApplicable","expansion":null},{"file_name":"hack16/src/translator.rs","byte_start":3645,"byte_end":3646,"line_start":148,"line_end":148,"column_start":15,"column_end":16,"is_primary":true,"text":[{"text":" (\"D+A\") | (\"A+D\") => Some(String::from(\"0000010\")),","highlight_start":15,"highlight_end":16}],"label":null,"suggested_replacement":"","suggestion_applicability":"MachineApplicable","expansion":null}],"children":[],"rendered":null}],"rendered":"\u001b[0m\u001b[1m\u001b[33mwarning\u001b[0m\u001b[0m\u001b[1m: unnecessary parentheses around pattern\u001b[0m\n\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;12m--> \u001b[0m\u001b[0mhack16/src/translator.rs:148:9\u001b[0m\n\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;12m|\u001b[0m\n\u001b[0m\u001b[1m\u001b[38;5;12m148\u001b[0m\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;12m| \u001b[0m\u001b[0m (\"D+A\") | (\"A+D\") => Some(String::from(\"0000010\")),\u001b[0m\n\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;12m| \u001b[0m\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[33m^\u001b[0m\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[33m^\u001b[0m\n\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;12m|\u001b[0m\n\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;12m= \u001b[0m\u001b[0m\u001b[1mnote\u001b[0m\u001b[0m: `#[warn(unused_parens)]` on by default\u001b[0m\n\u001b[0m\u001b[1m\u001b[38;5;14mhelp\u001b[0m\u001b[0m: remove these parentheses\u001b[0m\n\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;12m|\u001b[0m\n\u001b[0m\u001b[1m\u001b[38;5;12m148\u001b[0m\u001b[0m \u001b[0m\u001b[0m\u001b[38;5;9m- \u001b[0m\u001b[0m \u001b[0m\u001b[0m\u001b[38;5;9m(\u001b[0m\u001b[0m\"D+A\"\u001b[0m\u001b[0m\u001b[38;5;9m)\u001b[0m\u001b[0m | (\"A+D\") => Some(String::from(\"0000010\")),\u001b[0m\n\u001b[0m\u001b[1m\u001b[38;5;12m148\u001b[0m\u001b[0m \u001b[0m\u001b[0m\u001b[38;5;10m+ \u001b[0m\u001b[0m \"D+A\" | (\"A+D\") => Some(String::from(\"0000010\")),\u001b[0m\n\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;12m| \u001b[0m\n\n"} |
||||
{"message":"unnecessary parentheses around pattern","code":{"code":"unused_parens","explanation":null},"level":"warning","spans":[{"file_name":"hack16/src/translator.rs","byte_start":3649,"byte_end":3650,"line_start":148,"line_end":148,"column_start":19,"column_end":20,"is_primary":true,"text":[{"text":" (\"D+A\") | (\"A+D\") => Some(String::from(\"0000010\")),","highlight_start":19,"highlight_end":20}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"hack16/src/translator.rs","byte_start":3655,"byte_end":3656,"line_start":148,"line_end":148,"column_start":25,"column_end":26,"is_primary":true,"text":[{"text":" (\"D+A\") | (\"A+D\") => Some(String::from(\"0000010\")),","highlight_start":25,"highlight_end":26}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"remove these parentheses","code":null,"level":"help","spans":[{"file_name":"hack16/src/translator.rs","byte_start":3649,"byte_end":3650,"line_start":148,"line_end":148,"column_start":19,"column_end":20,"is_primary":true,"text":[{"text":" (\"D+A\") | (\"A+D\") => Some(String::from(\"0000010\")),","highlight_start":19,"highlight_end":20}],"label":null,"suggested_replacement":"","suggestion_applicability":"MachineApplicable","expansion":null},{"file_name":"hack16/src/translator.rs","byte_start":3655,"byte_end":3656,"line_start":148,"line_end":148,"column_start":25,"column_end":26,"is_primary":true,"text":[{"text":" (\"D+A\") | (\"A+D\") => Some(String::from(\"0000010\")),","highlight_start":25,"highlight_end":26}],"label":null,"suggested_replacement":"","suggestion_applicability":"MachineApplicable","expansion":null}],"children":[],"rendered":null}],"rendered":"\u001b[0m\u001b[1m\u001b[33mwarning\u001b[0m\u001b[0m\u001b[1m: unnecessary parentheses around pattern\u001b[0m\n\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;12m--> \u001b[0m\u001b[0mhack16/src/translator.rs:148:19\u001b[0m\n\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;12m|\u001b[0m\n\u001b[0m\u001b[1m\u001b[38;5;12m148\u001b[0m\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;12m| \u001b[0m\u001b[0m (\"D+A\") | (\"A+D\") => Some(String::from(\"0000010\")),\u001b[0m\n\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;12m| \u001b[0m\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[33m^\u001b[0m\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[33m^\u001b[0m\n\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;12m|\u001b[0m\n\u001b[0m\u001b[1m\u001b[38;5;14mhelp\u001b[0m\u001b[0m: remove these parentheses\u001b[0m\n\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;12m|\u001b[0m\n\u001b[0m\u001b[1m\u001b[38;5;12m148\u001b[0m\u001b[0m \u001b[0m\u001b[0m\u001b[38;5;9m- \u001b[0m\u001b[0m (\"D+A\") | \u001b[0m\u001b[0m\u001b[38;5;9m(\u001b[0m\u001b[0m\"A+D\"\u001b[0m\u001b[0m\u001b[38;5;9m)\u001b[0m\u001b[0m => Some(String::from(\"0000010\")),\u001b[0m\n\u001b[0m\u001b[1m\u001b[38;5;12m148\u001b[0m\u001b[0m \u001b[0m\u001b[0m\u001b[38;5;10m+ \u001b[0m\u001b[0m (\"D+A\") | \"A+D\" => Some(String::from(\"0000010\")),\u001b[0m\n\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;12m| \u001b[0m\n\n"} |
||||
{"message":"unnecessary parentheses around pattern","code":{"code":"unused_parens","explanation":null},"level":"warning","spans":[{"file_name":"hack16/src/translator.rs","byte_start":4141,"byte_end":4142,"line_start":159,"line_end":159,"column_start":9,"column_end":10,"is_primary":true,"text":[{"text":" (\"D+M\") | (\"M+D\") => Some(String::from(\"1000010\")),","highlight_start":9,"highlight_end":10}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"hack16/src/translator.rs","byte_start":4147,"byte_end":4148,"line_start":159,"line_end":159,"column_start":15,"column_end":16,"is_primary":true,"text":[{"text":" (\"D+M\") | (\"M+D\") => Some(String::from(\"1000010\")),","highlight_start":15,"highlight_end":16}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"remove these parentheses","code":null,"level":"help","spans":[{"file_name":"hack16/src/translator.rs","byte_start":4141,"byte_end":4142,"line_start":159,"line_end":159,"column_start":9,"column_end":10,"is_primary":true,"text":[{"text":" (\"D+M\") | (\"M+D\") => Some(String::from(\"1000010\")),","highlight_start":9,"highlight_end":10}],"label":null,"suggested_replacement":"","suggestion_applicability":"MachineApplicable","expansion":null},{"file_name":"hack16/src/translator.rs","byte_start":4147,"byte_end":4148,"line_start":159,"line_end":159,"column_start":15,"column_end":16,"is_primary":true,"text":[{"text":" (\"D+M\") | (\"M+D\") => Some(String::from(\"1000010\")),","highlight_start":15,"highlight_end":16}],"label":null,"suggested_replacement":"","suggestion_applicability":"MachineApplicable","expansion":null}],"children":[],"rendered":null}],"rendered":"\u001b[0m\u001b[1m\u001b[33mwarning\u001b[0m\u001b[0m\u001b[1m: unnecessary parentheses around pattern\u001b[0m\n\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;12m--> \u001b[0m\u001b[0mhack16/src/translator.rs:159:9\u001b[0m\n\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;12m|\u001b[0m\n\u001b[0m\u001b[1m\u001b[38;5;12m159\u001b[0m\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;12m| \u001b[0m\u001b[0m (\"D+M\") | (\"M+D\") => Some(String::from(\"1000010\")),\u001b[0m\n\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;12m| \u001b[0m\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[33m^\u001b[0m\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[33m^\u001b[0m\n\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;12m|\u001b[0m\n\u001b[0m\u001b[1m\u001b[38;5;14mhelp\u001b[0m\u001b[0m: remove these parentheses\u001b[0m\n\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;12m|\u001b[0m\n\u001b[0m\u001b[1m\u001b[38;5;12m159\u001b[0m\u001b[0m \u001b[0m\u001b[0m\u001b[38;5;9m- \u001b[0m\u001b[0m \u001b[0m\u001b[0m\u001b[38;5;9m(\u001b[0m\u001b[0m\"D+M\"\u001b[0m\u001b[0m\u001b[38;5;9m)\u001b[0m\u001b[0m | (\"M+D\") => Some(String::from(\"1000010\")),\u001b[0m\n\u001b[0m\u001b[1m\u001b[38;5;12m159\u001b[0m\u001b[0m \u001b[0m\u001b[0m\u001b[38;5;10m+ \u001b[0m\u001b[0m \"D+M\" | (\"M+D\") => Some(String::from(\"1000010\")),\u001b[0m\n\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;12m| \u001b[0m\n\n"} |
||||
{"message":"unnecessary parentheses around pattern","code":{"code":"unused_parens","explanation":null},"level":"warning","spans":[{"file_name":"hack16/src/translator.rs","byte_start":4151,"byte_end":4152,"line_start":159,"line_end":159,"column_start":19,"column_end":20,"is_primary":true,"text":[{"text":" (\"D+M\") | (\"M+D\") => Some(String::from(\"1000010\")),","highlight_start":19,"highlight_end":20}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"hack16/src/translator.rs","byte_start":4157,"byte_end":4158,"line_start":159,"line_end":159,"column_start":25,"column_end":26,"is_primary":true,"text":[{"text":" (\"D+M\") | (\"M+D\") => Some(String::from(\"1000010\")),","highlight_start":25,"highlight_end":26}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"remove these parentheses","code":null,"level":"help","spans":[{"file_name":"hack16/src/translator.rs","byte_start":4151,"byte_end":4152,"line_start":159,"line_end":159,"column_start":19,"column_end":20,"is_primary":true,"text":[{"text":" (\"D+M\") | (\"M+D\") => Some(String::from(\"1000010\")),","highlight_start":19,"highlight_end":20}],"label":null,"suggested_replacement":"","suggestion_applicability":"MachineApplicable","expansion":null},{"file_name":"hack16/src/translator.rs","byte_start":4157,"byte_end":4158,"line_start":159,"line_end":159,"column_start":25,"column_end":26,"is_primary":true,"text":[{"text":" (\"D+M\") | (\"M+D\") => Some(String::from(\"1000010\")),","highlight_start":25,"highlight_end":26}],"label":null,"suggested_replacement":"","suggestion_applicability":"MachineApplicable","expansion":null}],"children":[],"rendered":null}],"rendered":"\u001b[0m\u001b[1m\u001b[33mwarning\u001b[0m\u001b[0m\u001b[1m: unnecessary parentheses around pattern\u001b[0m\n\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;12m--> \u001b[0m\u001b[0mhack16/src/translator.rs:159:19\u001b[0m\n\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;12m|\u001b[0m\n\u001b[0m\u001b[1m\u001b[38;5;12m159\u001b[0m\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;12m| \u001b[0m\u001b[0m (\"D+M\") | (\"M+D\") => Some(String::from(\"1000010\")),\u001b[0m\n\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;12m| \u001b[0m\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[33m^\u001b[0m\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[33m^\u001b[0m\n\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;12m|\u001b[0m\n\u001b[0m\u001b[1m\u001b[38;5;14mhelp\u001b[0m\u001b[0m: remove these parentheses\u001b[0m\n\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;12m|\u001b[0m\n\u001b[0m\u001b[1m\u001b[38;5;12m159\u001b[0m\u001b[0m \u001b[0m\u001b[0m\u001b[38;5;9m- \u001b[0m\u001b[0m (\"D+M\") | \u001b[0m\u001b[0m\u001b[38;5;9m(\u001b[0m\u001b[0m\"M+D\"\u001b[0m\u001b[0m\u001b[38;5;9m)\u001b[0m\u001b[0m => Some(String::from(\"1000010\")),\u001b[0m\n\u001b[0m\u001b[1m\u001b[38;5;12m159\u001b[0m\u001b[0m \u001b[0m\u001b[0m\u001b[38;5;10m+ \u001b[0m\u001b[0m (\"D+M\") | \"M+D\" => Some(String::from(\"1000010\")),\u001b[0m\n\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;12m| \u001b[0m\n\n"} |
||||
{"message":"4 warnings emitted","code":null,"level":"warning","spans":[],"children":[],"rendered":"\u001b[0m\u001b[1m\u001b[33mwarning\u001b[0m\u001b[0m\u001b[1m: 4 warnings emitted\u001b[0m\n\n"} |
@ -1 +0,0 @@ |
||||
ae29c81c39120c6a |
@ -1 +0,0 @@ |
||||
{"rustc":17278786309488306807,"features":"[]","target":1897382851984237091,"profile":9251013656241001069,"path":1036222786711178230,"deps":[[12504305855290076067,"hack16",false,11595368920804033364]],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/sim-384d1e4ecdaacb6e/dep-bin-sim"}}],"rustflags":[],"metadata":7797948686568424061,"config":2202906307356721367,"compile_kind":0} |
Binary file not shown.
@ -1 +0,0 @@ |
||||
This file has an mtime of when this was started. |
@ -1,13 +0,0 @@ |
||||
{"message":"unnecessary parentheses around pattern","code":{"code":"unused_parens","explanation":null},"level":"warning","spans":[{"file_name":"src/simulator.rs","byte_start":3120,"byte_end":3121,"line_start":118,"line_end":118,"column_start":13,"column_end":14,"is_primary":true,"text":[{"text":" (\"D+A\") | (\"A+D\") => self.out = self.D + self.A,","highlight_start":13,"highlight_end":14}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"src/simulator.rs","byte_start":3126,"byte_end":3127,"line_start":118,"line_end":118,"column_start":19,"column_end":20,"is_primary":true,"text":[{"text":" (\"D+A\") | (\"A+D\") => self.out = self.D + self.A,","highlight_start":19,"highlight_end":20}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"`#[warn(unused_parens)]` on by default","code":null,"level":"note","spans":[],"children":[],"rendered":null},{"message":"remove these parentheses","code":null,"level":"help","spans":[{"file_name":"src/simulator.rs","byte_start":3120,"byte_end":3121,"line_start":118,"line_end":118,"column_start":13,"column_end":14,"is_primary":true,"text":[{"text":" (\"D+A\") | (\"A+D\") => self.out = self.D + self.A,","highlight_start":13,"highlight_end":14}],"label":null,"suggested_replacement":"","suggestion_applicability":"MachineApplicable","expansion":null},{"file_name":"src/simulator.rs","byte_start":3126,"byte_end":3127,"line_start":118,"line_end":118,"column_start":19,"column_end":20,"is_primary":true,"text":[{"text":" (\"D+A\") | (\"A+D\") => self.out = self.D + self.A,","highlight_start":19,"highlight_end":20}],"label":null,"suggested_replacement":"","suggestion_applicability":"MachineApplicable","expansion":null}],"children":[],"rendered":null}],"rendered":"\u001b[0m\u001b[1m\u001b[33mwarning\u001b[0m\u001b[0m\u001b[1m: unnecessary parentheses around pattern\u001b[0m\n\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;12m--> \u001b[0m\u001b[0msrc/simulator.rs:118:13\u001b[0m\n\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;12m|\u001b[0m\n\u001b[0m\u001b[1m\u001b[38;5;12m118\u001b[0m\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;12m| \u001b[0m\u001b[0m (\"D+A\") | (\"A+D\") => self.out = self.D + self.A,\u001b[0m\n\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;12m| \u001b[0m\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[33m^\u001b[0m\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[33m^\u001b[0m\n\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;12m|\u001b[0m\n\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;12m= \u001b[0m\u001b[0m\u001b[1mnote\u001b[0m\u001b[0m: `#[warn(unused_parens)]` on by default\u001b[0m\n\u001b[0m\u001b[1m\u001b[38;5;14mhelp\u001b[0m\u001b[0m: remove these parentheses\u001b[0m\n\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;12m|\u001b[0m\n\u001b[0m\u001b[1m\u001b[38;5;12m118\u001b[0m\u001b[0m \u001b[0m\u001b[0m\u001b[38;5;9m- \u001b[0m\u001b[0m \u001b[0m\u001b[0m\u001b[38;5;9m(\u001b[0m\u001b[0m\"D+A\"\u001b[0m\u001b[0m\u001b[38;5;9m)\u001b[0m\u001b[0m | (\"A+D\") => self.out = self.D + self.A,\u001b[0m\n\u001b[0m\u001b[1m\u001b[38;5;12m118\u001b[0m\u001b[0m \u001b[0m\u001b[0m\u001b[38;5;10m+ \u001b[0m\u001b[0m \"D+A\" | (\"A+D\") => self.out = self.D + self.A,\u001b[0m\n\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;12m| \u001b[0m\n\n"} |
||||
{"message":"unnecessary parentheses around pattern","code":{"code":"unused_parens","explanation":null},"level":"warning","spans":[{"file_name":"src/simulator.rs","byte_start":3130,"byte_end":3131,"line_start":118,"line_end":118,"column_start":23,"column_end":24,"is_primary":true,"text":[{"text":" (\"D+A\") | (\"A+D\") => self.out = self.D + self.A,","highlight_start":23,"highlight_end":24}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"src/simulator.rs","byte_start":3136,"byte_end":3137,"line_start":118,"line_end":118,"column_start":29,"column_end":30,"is_primary":true,"text":[{"text":" (\"D+A\") | (\"A+D\") => self.out = self.D + self.A,","highlight_start":29,"highlight_end":30}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"remove these parentheses","code":null,"level":"help","spans":[{"file_name":"src/simulator.rs","byte_start":3130,"byte_end":3131,"line_start":118,"line_end":118,"column_start":23,"column_end":24,"is_primary":true,"text":[{"text":" (\"D+A\") | (\"A+D\") => self.out = self.D + self.A,","highlight_start":23,"highlight_end":24}],"label":null,"suggested_replacement":"","suggestion_applicability":"MachineApplicable","expansion":null},{"file_name":"src/simulator.rs","byte_start":3136,"byte_end":3137,"line_start":118,"line_end":118,"column_start":29,"column_end":30,"is_primary":true,"text":[{"text":" (\"D+A\") | (\"A+D\") => self.out = self.D + self.A,","highlight_start":29,"highlight_end":30}],"label":null,"suggested_replacement":"","suggestion_applicability":"MachineApplicable","expansion":null}],"children":[],"rendered":null}],"rendered":"\u001b[0m\u001b[1m\u001b[33mwarning\u001b[0m\u001b[0m\u001b[1m: unnecessary parentheses around pattern\u001b[0m\n\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;12m--> \u001b[0m\u001b[0msrc/simulator.rs:118:23\u001b[0m\n\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;12m|\u001b[0m\n\u001b[0m\u001b[1m\u001b[38;5;12m118\u001b[0m\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;12m| \u001b[0m\u001b[0m (\"D+A\") | (\"A+D\") => self.out = self.D + self.A,\u001b[0m\n\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;12m| \u001b[0m\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[33m^\u001b[0m\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[33m^\u001b[0m\n\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;12m|\u001b[0m\n\u001b[0m\u001b[1m\u001b[38;5;14mhelp\u001b[0m\u001b[0m: remove these parentheses\u001b[0m\n\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;12m|\u001b[0m\n\u001b[0m\u001b[1m\u001b[38;5;12m118\u001b[0m\u001b[0m \u001b[0m\u001b[0m\u001b[38;5;9m- \u001b[0m\u001b[0m (\"D+A\") | \u001b[0m\u001b[0m\u001b[38;5;9m(\u001b[0m\u001b[0m\"A+D\"\u001b[0m\u001b[0m\u001b[38;5;9m)\u001b[0m\u001b[0m => self.out = self.D + self.A,\u001b[0m\n\u001b[0m\u001b[1m\u001b[38;5;12m118\u001b[0m\u001b[0m \u001b[0m\u001b[0m\u001b[38;5;10m+ \u001b[0m\u001b[0m (\"D+A\") | \"A+D\" => self.out = self.D + self.A,\u001b[0m\n\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;12m| \u001b[0m\n\n"} |
||||
{"message":"unnecessary parentheses around pattern","code":{"code":"unused_parens","explanation":null},"level":"warning","spans":[{"file_name":"src/simulator.rs","byte_start":3626,"byte_end":3627,"line_start":128,"line_end":128,"column_start":13,"column_end":14,"is_primary":true,"text":[{"text":" (\"D+M\") | (\"M+D\") => self.out = self.D + self.RAM[addr],","highlight_start":13,"highlight_end":14}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"src/simulator.rs","byte_start":3632,"byte_end":3633,"line_start":128,"line_end":128,"column_start":19,"column_end":20,"is_primary":true,"text":[{"text":" (\"D+M\") | (\"M+D\") => self.out = self.D + self.RAM[addr],","highlight_start":19,"highlight_end":20}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"remove these parentheses","code":null,"level":"help","spans":[{"file_name":"src/simulator.rs","byte_start":3626,"byte_end":3627,"line_start":128,"line_end":128,"column_start":13,"column_end":14,"is_primary":true,"text":[{"text":" (\"D+M\") | (\"M+D\") => self.out = self.D + self.RAM[addr],","highlight_start":13,"highlight_end":14}],"label":null,"suggested_replacement":"","suggestion_applicability":"MachineApplicable","expansion":null},{"file_name":"src/simulator.rs","byte_start":3632,"byte_end":3633,"line_start":128,"line_end":128,"column_start":19,"column_end":20,"is_primary":true,"text":[{"text":" (\"D+M\") | (\"M+D\") => self.out = self.D + self.RAM[addr],","highlight_start":19,"highlight_end":20}],"label":null,"suggested_replacement":"","suggestion_applicability":"MachineApplicable","expansion":null}],"children":[],"rendered":null}],"rendered":"\u001b[0m\u001b[1m\u001b[33mwarning\u001b[0m\u001b[0m\u001b[1m: unnecessary parentheses around pattern\u001b[0m\n\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;12m--> \u001b[0m\u001b[0msrc/simulator.rs:128:13\u001b[0m\n\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;12m|\u001b[0m\n\u001b[0m\u001b[1m\u001b[38;5;12m128\u001b[0m\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;12m| \u001b[0m\u001b[0m (\"D+M\") | (\"M+D\") => self.out = self.D + self.RAM[addr],\u001b[0m\n\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;12m| \u001b[0m\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[33m^\u001b[0m\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[33m^\u001b[0m\n\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;12m|\u001b[0m\n\u001b[0m\u001b[1m\u001b[38;5;14mhelp\u001b[0m\u001b[0m: remove these parentheses\u001b[0m\n\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;12m|\u001b[0m\n\u001b[0m\u001b[1m\u001b[38;5;12m128\u001b[0m\u001b[0m \u001b[0m\u001b[0m\u001b[38;5;9m- \u001b[0m\u001b[0m \u001b[0m\u001b[0m\u001b[38;5;9m(\u001b[0m\u001b[0m\"D+M\"\u001b[0m\u001b[0m\u001b[38;5;9m)\u001b[0m\u001b[0m | (\"M+D\") => self.out = self.D + self.RAM[addr],\u001b[0m\n\u001b[0m\u001b[1m\u001b[38;5;12m128\u001b[0m\u001b[0m \u001b[0m\u001b[0m\u001b[38;5;10m+ \u001b[0m\u001b[0m \"D+M\" | (\"M+D\") => self.out = self.D + self.RAM[addr],\u001b[0m\n\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;12m| \u001b[0m\n\n"} |
||||
{"message":"unnecessary parentheses around pattern","code":{"code":"unused_parens","explanation":null},"level":"warning","spans":[{"file_name":"src/simulator.rs","byte_start":3636,"byte_end":3637,"line_start":128,"line_end":128,"column_start":23,"column_end":24,"is_primary":true,"text":[{"text":" (\"D+M\") | (\"M+D\") => self.out = self.D + self.RAM[addr],","highlight_start":23,"highlight_end":24}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"src/simulator.rs","byte_start":3642,"byte_end":3643,"line_start":128,"line_end":128,"column_start":29,"column_end":30,"is_primary":true,"text":[{"text":" (\"D+M\") | (\"M+D\") => self.out = self.D + self.RAM[addr],","highlight_start":29,"highlight_end":30}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"remove these parentheses","code":null,"level":"help","spans":[{"file_name":"src/simulator.rs","byte_start":3636,"byte_end":3637,"line_start":128,"line_end":128,"column_start":23,"column_end":24,"is_primary":true,"text":[{"text":" (\"D+M\") | (\"M+D\") => self.out = self.D + self.RAM[addr],","highlight_start":23,"highlight_end":24}],"label":null,"suggested_replacement":"","suggestion_applicability":"MachineApplicable","expansion":null},{"file_name":"src/simulator.rs","byte_start":3642,"byte_end":3643,"line_start":128,"line_end":128,"column_start":29,"column_end":30,"is_primary":true,"text":[{"text":" (\"D+M\") | (\"M+D\") => self.out = self.D + self.RAM[addr],","highlight_start":29,"highlight_end":30}],"label":null,"suggested_replacement":"","suggestion_applicability":"MachineApplicable","expansion":null}],"children":[],"rendered":null}],"rendered":"\u001b[0m\u001b[1m\u001b[33mwarning\u001b[0m\u001b[0m\u001b[1m: unnecessary parentheses around pattern\u001b[0m\n\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;12m--> \u001b[0m\u001b[0msrc/simulator.rs:128:23\u001b[0m\n\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;12m|\u001b[0m\n\u001b[0m\u001b[1m\u001b[38;5;12m128\u001b[0m\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;12m| \u001b[0m\u001b[0m (\"D+M\") | (\"M+D\") => self.out = self.D + self.RAM[addr],\u001b[0m\n\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;12m| \u001b[0m\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[33m^\u001b[0m\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[33m^\u001b[0m\n\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;12m|\u001b[0m\n\u001b[0m\u001b[1m\u001b[38;5;14mhelp\u001b[0m\u001b[0m: remove these parentheses\u001b[0m\n\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;12m|\u001b[0m\n\u001b[0m\u001b[1m\u001b[38;5;12m128\u001b[0m\u001b[0m \u001b[0m\u001b[0m\u001b[38;5;9m- \u001b[0m\u001b[0m (\"D+M\") | \u001b[0m\u001b[0m\u001b[38;5;9m(\u001b[0m\u001b[0m\"M+D\"\u001b[0m\u001b[0m\u001b[38;5;9m)\u001b[0m\u001b[0m => self.out = self.D + self.RAM[addr],\u001b[0m\n\u001b[0m\u001b[1m\u001b[38;5;12m128\u001b[0m\u001b[0m \u001b[0m\u001b[0m\u001b[38;5;10m+ \u001b[0m\u001b[0m (\"D+M\") | \"M+D\" => self.out = self.D + self.RAM[addr],\u001b[0m\n\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;12m| \u001b[0m\n\n"} |
||||
{"message":"structure field `A` should have a snake case name","code":{"code":"non_snake_case","explanation":null},"level":"warning","spans":[{"file_name":"src/simulator.rs","byte_start":131,"byte_end":132,"line_start":7,"line_end":7,"column_start":5,"column_end":6,"is_primary":true,"text":[{"text":" A:i16,","highlight_start":5,"highlight_end":6}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"`#[warn(non_snake_case)]` on by default","code":null,"level":"note","spans":[],"children":[],"rendered":null},{"message":"convert the identifier to snake case","code":null,"level":"help","spans":[{"file_name":"src/simulator.rs","byte_start":131,"byte_end":132,"line_start":7,"line_end":7,"column_start":5,"column_end":6,"is_primary":true,"text":[{"text":" A:i16,","highlight_start":5,"highlight_end":6}],"label":null,"suggested_replacement":"a","suggestion_applicability":"MaybeIncorrect","expansion":null}],"children":[],"rendered":null}],"rendered":"\u001b[0m\u001b[1m\u001b[33mwarning\u001b[0m\u001b[0m\u001b[1m: structure field `A` should have a snake case name\u001b[0m\n\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;12m--> \u001b[0m\u001b[0msrc/simulator.rs:7:5\u001b[0m\n\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;12m|\u001b[0m\n\u001b[0m\u001b[1m\u001b[38;5;12m7\u001b[0m\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;12m| \u001b[0m\u001b[0m A:i16,\u001b[0m\n\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;12m| \u001b[0m\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[33m^\u001b[0m\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[33mhelp: convert the identifier to snake case: `a`\u001b[0m\n\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;12m|\u001b[0m\n\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;12m= \u001b[0m\u001b[0m\u001b[1mnote\u001b[0m\u001b[0m: `#[warn(non_snake_case)]` on by default\u001b[0m\n\n"} |
||||
{"message":"structure field `D` should have a snake case name","code":{"code":"non_snake_case","explanation":null},"level":"warning","spans":[{"file_name":"src/simulator.rs","byte_start":142,"byte_end":143,"line_start":8,"line_end":8,"column_start":5,"column_end":6,"is_primary":true,"text":[{"text":" D:i16,","highlight_start":5,"highlight_end":6}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"convert the identifier to snake case","code":null,"level":"help","spans":[{"file_name":"src/simulator.rs","byte_start":142,"byte_end":143,"line_start":8,"line_end":8,"column_start":5,"column_end":6,"is_primary":true,"text":[{"text":" D:i16,","highlight_start":5,"highlight_end":6}],"label":null,"suggested_replacement":"d","suggestion_applicability":"MaybeIncorrect","expansion":null}],"children":[],"rendered":null}],"rendered":"\u001b[0m\u001b[1m\u001b[33mwarning\u001b[0m\u001b[0m\u001b[1m: structure field `D` should have a snake case name\u001b[0m\n\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;12m--> \u001b[0m\u001b[0msrc/simulator.rs:8:5\u001b[0m\n\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;12m|\u001b[0m\n\u001b[0m\u001b[1m\u001b[38;5;12m8\u001b[0m\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;12m| \u001b[0m\u001b[0m D:i16,\u001b[0m\n\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;12m| \u001b[0m\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[33m^\u001b[0m\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[33mhelp: convert the identifier to snake case: `d`\u001b[0m\n\n"} |
||||
{"message":"structure field `PC` should have a snake case name","code":{"code":"non_snake_case","explanation":null},"level":"warning","spans":[{"file_name":"src/simulator.rs","byte_start":153,"byte_end":155,"line_start":9,"line_end":9,"column_start":5,"column_end":7,"is_primary":true,"text":[{"text":" PC:i16,","highlight_start":5,"highlight_end":7}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"convert the identifier to snake case","code":null,"level":"help","spans":[{"file_name":"src/simulator.rs","byte_start":153,"byte_end":155,"line_start":9,"line_end":9,"column_start":5,"column_end":7,"is_primary":true,"text":[{"text":" PC:i16,","highlight_start":5,"highlight_end":7}],"label":null,"suggested_replacement":"pc","suggestion_applicability":"MaybeIncorrect","expansion":null}],"children":[],"rendered":null}],"rendered":"\u001b[0m\u001b[1m\u001b[33mwarning\u001b[0m\u001b[0m\u001b[1m: structure field `PC` should have a snake case name\u001b[0m\n\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;12m--> \u001b[0m\u001b[0msrc/simulator.rs:9:5\u001b[0m\n\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;12m|\u001b[0m\n\u001b[0m\u001b[1m\u001b[38;5;12m9\u001b[0m\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;12m| \u001b[0m\u001b[0m PC:i16,\u001b[0m\n\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;12m| \u001b[0m\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[33m^^\u001b[0m\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[33mhelp: convert the identifier to snake case: `pc`\u001b[0m\n\n"} |
||||
{"message":"structure field `RAM` should have a snake case name","code":{"code":"non_snake_case","explanation":null},"level":"warning","spans":[{"file_name":"src/simulator.rs","byte_start":178,"byte_end":181,"line_start":11,"line_end":11,"column_start":5,"column_end":8,"is_primary":true,"text":[{"text":" RAM: [i16; MEM_SIZE],","highlight_start":5,"highlight_end":8}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"convert the identifier to snake case","code":null,"level":"help","spans":[{"file_name":"src/simulator.rs","byte_start":178,"byte_end":181,"line_start":11,"line_end":11,"column_start":5,"column_end":8,"is_primary":true,"text":[{"text":" RAM: [i16; MEM_SIZE],","highlight_start":5,"highlight_end":8}],"label":null,"suggested_replacement":"ram","suggestion_applicability":"MaybeIncorrect","expansion":null}],"children":[],"rendered":null}],"rendered":"\u001b[0m\u001b[1m\u001b[33mwarning\u001b[0m\u001b[0m\u001b[1m: structure field `RAM` should have a snake case name\u001b[0m\n\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;12m--> \u001b[0m\u001b[0msrc/simulator.rs:11:5\u001b[0m\n\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;12m|\u001b[0m\n\u001b[0m\u001b[1m\u001b[38;5;12m11\u001b[0m\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;12m| \u001b[0m\u001b[0m RAM: [i16; MEM_SIZE],\u001b[0m\n\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;12m| \u001b[0m\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[33m^^^\u001b[0m\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[33mhelp: convert the identifier to snake case: `ram`\u001b[0m\n\n"} |
||||
{"message":"structure field `ROM` should have a snake case name","code":{"code":"non_snake_case","explanation":null},"level":"warning","spans":[{"file_name":"src/simulator.rs","byte_start":204,"byte_end":207,"line_start":12,"line_end":12,"column_start":5,"column_end":8,"is_primary":true,"text":[{"text":" ROM: Vec<Instruction>,","highlight_start":5,"highlight_end":8}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"convert the identifier to snake case","code":null,"level":"help","spans":[{"file_name":"src/simulator.rs","byte_start":204,"byte_end":207,"line_start":12,"line_end":12,"column_start":5,"column_end":8,"is_primary":true,"text":[{"text":" ROM: Vec<Instruction>,","highlight_start":5,"highlight_end":8}],"label":null,"suggested_replacement":"rom","suggestion_applicability":"MaybeIncorrect","expansion":null}],"children":[],"rendered":null}],"rendered":"\u001b[0m\u001b[1m\u001b[33mwarning\u001b[0m\u001b[0m\u001b[1m: structure field `ROM` should have a snake case name\u001b[0m\n\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;12m--> \u001b[0m\u001b[0msrc/simulator.rs:12:5\u001b[0m\n\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;12m|\u001b[0m\n\u001b[0m\u001b[1m\u001b[38;5;12m12\u001b[0m\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;12m| \u001b[0m\u001b[0m ROM: Vec<Instruction>,\u001b[0m\n\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;12m| \u001b[0m\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[33m^^^\u001b[0m\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[33mhelp: convert the identifier to snake case: `rom`\u001b[0m\n\n"} |
||||
{"message":"variable `RAM` should have a snake case name","code":{"code":"non_snake_case","explanation":null},"level":"warning","spans":[{"file_name":"src/simulator.rs","byte_start":304,"byte_end":307,"line_start":18,"line_end":18,"column_start":13,"column_end":16,"is_primary":true,"text":[{"text":" let RAM = [0; MEM_SIZE];","highlight_start":13,"highlight_end":16}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"convert the identifier to snake case","code":null,"level":"help","spans":[{"file_name":"src/simulator.rs","byte_start":304,"byte_end":307,"line_start":18,"line_end":18,"column_start":13,"column_end":16,"is_primary":true,"text":[{"text":" let RAM = [0; MEM_SIZE];","highlight_start":13,"highlight_end":16}],"label":null,"suggested_replacement":"ram","suggestion_applicability":"MaybeIncorrect","expansion":null}],"children":[],"rendered":null}],"rendered":"\u001b[0m\u001b[1m\u001b[33mwarning\u001b[0m\u001b[0m\u001b[1m: variable `RAM` should have a snake case name\u001b[0m\n\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;12m--> \u001b[0m\u001b[0msrc/simulator.rs:18:13\u001b[0m\n\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;12m|\u001b[0m\n\u001b[0m\u001b[1m\u001b[38;5;12m18\u001b[0m\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;12m| \u001b[0m\u001b[0m let RAM = [0; MEM_SIZE];\u001b[0m\n\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;12m| \u001b[0m\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[33m^^^\u001b[0m\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[33mhelp: convert the identifier to snake case: `ram`\u001b[0m\n\n"} |
||||
{"message":"variable `ROM` should have a snake case name","code":{"code":"non_snake_case","explanation":null},"level":"warning","spans":[{"file_name":"src/simulator.rs","byte_start":337,"byte_end":340,"line_start":19,"line_end":19,"column_start":13,"column_end":16,"is_primary":true,"text":[{"text":" let ROM:Vec<Instruction> = Vec::new();","highlight_start":13,"highlight_end":16}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"convert the identifier to snake case","code":null,"level":"help","spans":[{"file_name":"src/simulator.rs","byte_start":337,"byte_end":340,"line_start":19,"line_end":19,"column_start":13,"column_end":16,"is_primary":true,"text":[{"text":" let ROM:Vec<Instruction> = Vec::new();","highlight_start":13,"highlight_end":16}],"label":null,"suggested_replacement":"rom","suggestion_applicability":"MaybeIncorrect","expansion":null}],"children":[],"rendered":null}],"rendered":"\u001b[0m\u001b[1m\u001b[33mwarning\u001b[0m\u001b[0m\u001b[1m: variable `ROM` should have a snake case name\u001b[0m\n\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;12m--> \u001b[0m\u001b[0msrc/simulator.rs:19:13\u001b[0m\n\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;12m|\u001b[0m\n\u001b[0m\u001b[1m\u001b[38;5;12m19\u001b[0m\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;12m| \u001b[0m\u001b[0m let ROM:Vec<Instruction> = Vec::new();\u001b[0m\n\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;12m| \u001b[0m\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[33m^^^\u001b[0m\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[33mhelp: convert the identifier to snake case: `rom`\u001b[0m\n\n"} |
||||
{"message":"variable `PC` should have a snake case name","code":{"code":"non_snake_case","explanation":null},"level":"warning","spans":[{"file_name":"src/simulator.rs","byte_start":1039,"byte_end":1041,"line_start":48,"line_end":48,"column_start":17,"column_end":19,"is_primary":true,"text":[{"text":" let PC = usize::try_from(self.PC).expect(\"Invalid value in PC!\");","highlight_start":17,"highlight_end":19}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"convert the identifier to snake case","code":null,"level":"help","spans":[{"file_name":"src/simulator.rs","byte_start":1039,"byte_end":1041,"line_start":48,"line_end":48,"column_start":17,"column_end":19,"is_primary":true,"text":[{"text":" let PC = usize::try_from(self.PC).expect(\"Invalid value in PC!\");","highlight_start":17,"highlight_end":19}],"label":null,"suggested_replacement":"pc","suggestion_applicability":"MaybeIncorrect","expansion":null}],"children":[],"rendered":null}],"rendered":"\u001b[0m\u001b[1m\u001b[33mwarning\u001b[0m\u001b[0m\u001b[1m: variable `PC` should have a snake case name\u001b[0m\n\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;12m--> \u001b[0m\u001b[0msrc/simulator.rs:48:17\u001b[0m\n\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;12m|\u001b[0m\n\u001b[0m\u001b[1m\u001b[38;5;12m48\u001b[0m\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;12m| \u001b[0m\u001b[0m let PC = usize::try_from(self.PC).expect(\"Invalid value in PC!\");\u001b[0m\n\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;12m| \u001b[0m\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[33m^^\u001b[0m\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[33mhelp: convert the identifier to snake case: `pc`\u001b[0m\n\n"} |
||||
{"message":"12 warnings emitted","code":null,"level":"warning","spans":[],"children":[],"rendered":"\u001b[0m\u001b[1m\u001b[33mwarning\u001b[0m\u001b[0m\u001b[1m: 12 warnings emitted\u001b[0m\n\n"} |
@ -1,10 +0,0 @@ |
||||
/home/jbm/Projects/Elements/projects/sim/target/debug/deps/hack16-92f935f468a8b88b.rmeta: hack16/src/lib.rs hack16/src/preprocessor.rs hack16/src/parser.rs hack16/src/translator.rs |
||||
|
||||
/home/jbm/Projects/Elements/projects/sim/target/debug/deps/libhack16-92f935f468a8b88b.rlib: hack16/src/lib.rs hack16/src/preprocessor.rs hack16/src/parser.rs hack16/src/translator.rs |
||||
|
||||
/home/jbm/Projects/Elements/projects/sim/target/debug/deps/hack16-92f935f468a8b88b.d: hack16/src/lib.rs hack16/src/preprocessor.rs hack16/src/parser.rs hack16/src/translator.rs |
||||
|
||||
hack16/src/lib.rs: |
||||
hack16/src/preprocessor.rs: |
||||
hack16/src/parser.rs: |
||||
hack16/src/translator.rs: |
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,6 +0,0 @@ |
||||
/home/jbm/Projects/Elements/projects/sim/target/debug/deps/sim-384d1e4ecdaacb6e: src/main.rs src/simulator.rs |
||||
|
||||
/home/jbm/Projects/Elements/projects/sim/target/debug/deps/sim-384d1e4ecdaacb6e.d: src/main.rs src/simulator.rs |
||||
|
||||
src/main.rs: |
||||
src/simulator.rs: |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue