(addr)
| 532 | } |
| 533 | |
| 534 | function readstr(addr) { |
| 535 | let str = ""; |
| 536 | for (let i = 0;; i++) { |
| 537 | let c = p.read1(addr.add32(i)); |
| 538 | if (c == 0x0) { |
| 539 | break; |
| 540 | } |
| 541 | str += String.fromCharCode(c); |
| 542 | |
| 543 | } |
| 544 | return str; |
| 545 | } |
| 546 | |
| 547 | function writestr(addr, str) { |
| 548 | let waddr = addr.add32(0); |
nothing calls this directly
no outgoing calls
no test coverage detected