()
| 53 | } |
| 54 | |
| 55 | readArray() { |
| 56 | const length = this.readByte() |
| 57 | const array = [] |
| 58 | for (let i = 0; i < length; i++) { |
| 59 | // these should be registers to loaded values |
| 60 | array.push(this.read(this.readByte())) |
| 61 | } |
| 62 | log(`Read array of length ${length}: ${array}`) |
| 63 | return array |
| 64 | } |
| 65 | |
| 66 | // js integers are 32-bit signed |
| 67 | readDWORD() { |
no test coverage detected