mirror of
https://github.com/haven1433/HexManiacAdvance.git
synced 2026-05-25 06:49:03 -05:00
lsl should select the correct version
This commit is contained in:
parent
dbe054d090
commit
b6da614b95
|
|
@ -533,7 +533,8 @@ namespace HavenSoft.HexManiac.Core.Models.Code {
|
|||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
// Completed parsing the line. Should've used the entire template.
|
||||
return template.Length == 0;
|
||||
}
|
||||
|
||||
private static ushort ParseList(string list) {
|
||||
|
|
|
|||
|
|
@ -391,6 +391,7 @@ namespace HavenSoft.HexManiac.Tests {
|
|||
[InlineData("ldr r0, [pc, <bob>]", 0b01001_000_11011111)] // -33*4+4=-128
|
||||
[InlineData("ldrb r1, [r1, r2]", 0b0101110_010_001_001)]
|
||||
[InlineData("ldrh r2, [r1, #0]", 0b10001_00000_001010)]
|
||||
[InlineData("lsl r1, r2", 0b0100000010_010_001)]
|
||||
public void ThumbCompilerTests(string input, uint output) {
|
||||
var bytes = new List<byte> { (byte)output, (byte)(output >> 8) };
|
||||
var model = new PokemonModel(new byte[0x200]);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user