First Spear Posted February 25, 2018 Share Posted February 25, 2018 As a variant of this, have you seen anything in your travels that would start at BACKTAB position 0 and print the contents of GRAM item 0 to 63? I don't want to be a Messerschmidt, but it is February 2016 by now and this thread hasn't been going on that long. Quote Link to comment Share on other sites More sharing options...
carlsson Posted February 25, 2018 Share Posted February 25, 2018 Like one character per position, to dump the entire GRAM content? Isn't that more or less trivial or am I missing something? Quote Link to comment Share on other sites More sharing options...
+Tarzilla Posted February 25, 2018 Share Posted February 25, 2018 As a variant of this, have you seen anything in your travels that would start at BACKTAB position 0 and print the contents of GRAM item 0 to 63? Not quite understanding the question but:The newest jzintv has a hot key to write current Gram to an image file. F8+G on Windows. Or you could PRINT at 0, "\256\257\258" Etc. 1 Quote Link to comment Share on other sites More sharing options...
intvnut Posted February 27, 2018 Share Posted February 27, 2018 Not quite understanding the question but: The newest jzintv has a hot key to write current Gram to an image file. F8+G on Windows. Or you could PRINT at 0, "\256\257\258" Etc. If you're willing to use the command line debugger, you can also use that to inspect GRAM with the new gt command. (Think "GRAM tile" or "GRAM text".) > gt 0 64 0 0 1 1 2 2 3 3 4 4 5 5 6 6 7 7 0: ........ ........ ...#..#. .......# .##..... ..##.#.. ..#..#.# #.#.#.#. 1: ........ .#...... .#...... #...#... ....#.## .#....#. #.###.#. .#.##.## 2: ...#.... ........ ........ .#.#...# .#.#.... ..####.# .#...#.. ###.#..# 3: ........ ...#.... ..#.#.#. ....#... .#...##. #....... #.#.##.. .#.#.##. 4: ........ ......#. ........ .#.#..#. #..#...# ..#.##.. #.##..## #.###.## 5: ........ ........ ..#..#.. ....#..# .#..##.# ##.#..#. .#.#.#.. .##..##. 6: ........ ..#..#.. ......#. #.#..... ..#..#.. ..#..#.# #.#.#.## .#.###.# 7: ...#.... ........ .##.#... ....#.## #..#...# ##.#.#.# .#.#.#.# #.#.#.#. 8 8 9 9 10 A 11 B 12 C 13 D 14 E 15 F 0: ##.#.### #.##.#.# .##.#### #.###### .####### ######## #######. ##...... 1: .####.#. #.#.#.## #.###.## ###.#### ######## ######## ######## ##...... 2: ##.#.#.# .####### ######## #####.## ##...... ........ ......## ##...... 3: ..#####. ##.#.#.# .##.#.## .####### ##...... ........ ......## ##...... 4: ##.#..## ##.##.## ######## ###.#### ##...... ........ ......## ##...... 5: .##.##.. .####### ###.##.# ######## ##...... ........ ......## ##...... 6: ###.#### ###.#.## #.###### #.#####. ##...... ........ ......## ##...... 7: ##.##.## ##.###.# #####.#. ######## ##...... ........ ......## ##...... 16 10 17 11 18 12 19 13 20 14 21 15 22 16 23 17 0: ......#. ......## ##...... ........ ........ ....#### #.....## ##...### 1: .....### ......## ##...... ........ ........ ....#### #.....## ##....## 2: ....#### #.....## ##...... ........ ........ ....#### #.....## ##.....# 3: ...##### ##....## ##...... ........ ........ ....#### #.....## ##...... 4: ..###### ###...## ##...... ...####. ........ ....#### #.....## ##...... 5: .####### ####..## ##...... ######.. ........ ....#### #.....## ##...... 6: .####### ####..## ##....## ######.. ......## ....#### #.....## ##...... 7: ######## #####.## ##..#### #######. ....#### ....#### #.....## ##...... 24 18 25 19 26 1A 27 1B 28 1C 29 1D 30 1E 31 1F 0: ######## ........ .....### ....#### .######. ........ .####### ...##### 1: ######## #....... ......## #...#### ..###### ........ ..###### ...##### 2: ######## ##...... .......# ##..#### ..###### ........ ..###### ...##### 3: ######## ###..... ........ ###.#### ..###### ....##.. ..###### ...##### 4: .##..### ####.... ........ ######## ...##### ....##.. ...##### ...##### 5: ..#...## #####... ........ ######## ...##### ....##.. ...##### ........ 6: .......# ######.. ........ ######## ...##### ....##.. ...##### ........ 7: ........ #######. ........ ######## ...##### ....##.. ...##### ........ 32 20 33 21 34 22 35 23 36 24 37 25 38 26 39 27 0: ....##.. ...##### ##...##. ..#...## .##.##.. ##..##.. ....#### #.....## 1: ....##.. ....#### ##..#### ..##..## .##.##.. ##..##.. ....#### #.....## 2: ....##.. ....#### ##.##..# #.###.## .##.##.. ##..##.. ....#### #.....## 3: ....##.. ....#### ##.##..# #.###### .##..### #...##.. ....#### #.....## 4: ....##.. ....#### ##.##..# #.###### .##...## ....##.. ........ ......## 5: ....##.. ....#### ##.##..# #.##.### .##...## ....##.. ........ ......## 6: ....##.. ....#### ##..#### ..##..## .####.## ....##.. ........ ......## 7: ....##.. ....#### ##...##. ..##...# .####.## ....##.. ........ ......## 40 28 41 29 42 2A 43 2B 44 2C 45 2D 46 2E 47 2F 0: ##...... ........ ....##.. ......## .####### ######## ######## ######## 1: ##...... ........ ....##.. ......## ######## ######## ######## ######## 2: ##...... ........ ....##.. ......## ######## ######## ######## ######## 3: ##...... ........ ....##.. ......## ######## ######## ######.. .####### 4: ##...... ........ ....##.. ......## ######## ######## ######.. ..###### 5: ##...... ........ ....##.. ......## ######## ######## ######.. ....#### 6: ######## ######## ######## ######## ######## ######## ######.. .....### 7: .####### ######## ######## #######. ######## ........ ........ .......# 48 30 49 31 50 32 51 33 52 34 53 35 54 36 55 37 0: #######. .....##. .#####.. ..##...# #..###.# #..##... ######## ######## 1: ######## ....#### .##..... ..##...# #..###.# #..##... ..###### ######## 2: ######## ...##..# .##..... ..##...# #..#.#.# #..##... ...##### ######## 3: ######## ...##..# .####... ..##.#.# #..#.#.. ####.... ....#### ######## 4: ######## ...##..# .##..... ..###### #.#####. .##..... ....#### ######## 5: ######## ...##..# .##..... ...##.## .##...## .##..... ...##### ######## 6: ######## ....#### .##..... ...##.## .##...## .##..... ..###### ######## 7: ######## .....##. .#####.. ...##.## .##...## .##..... ######## .####### 56 38 57 39 58 3A 59 3B 60 3C 61 3D 62 3E 63 3F 0: ........ ........ .......# ######## ###.#.## ........ ........ ........ 1: ######## ######.. .....### ######## ##.#.#.# ........ ........ ........ 2: ######## ######.. ....#### ######## #####.## ........ ........ ........ 3: ######## ######.. ..###### ######## ###.##.# ........ ........ ........ 4: ######## ######.. .####### ######## #.###.## ........ ........ ........ 5: ######## ######## ######## ######## ######.# ........ ........ ........ 6: ######## ######## ######## ######## ##.#.### ........ ........ ........ 7: ######## ######## ######## #######. ######.# ........ ........ ........ 3 Quote Link to comment Share on other sites More sharing options...
First Spear Posted March 1, 2018 Share Posted March 1, 2018 Awesome. Is it possible to put an ASM command into IntyBASIC that would end up as a breakpoint in the runtime code, so the game could run until it hit a certain point, and then I could use the gt command or F8+G? Thanks. If you're willing to use the command line debugger, you can also use that to inspect GRAM with the new gt command. (Think "GRAM tile" or "GRAM text".) > gt 0 64 0 0 1 1 2 2 3 3 4 4 5 5 6 6 7 7 Quote Link to comment Share on other sites More sharing options...
intvnut Posted March 1, 2018 Share Posted March 1, 2018 (edited) Awesome. Is it possible to put an ASM command into IntyBASIC that would end up as a breakpoint in the runtime code, so the game could run until it hit a certain point, and then I could use the gt command or F8+G? I don't have anything quite like that; however, it's super easy to fake. There's a "JR R5" instruction at $1004, so you could simply do this: ASM JSR R5, $1003 and then set a breakpoint on location $1003 with the command "b 1003". Nothing should call location $1003 after the initial startup of the game. You will hit it twice on startup of the game, though, if you're using the stock EXEC. If you're using MiniEXEC (which I believe is packaged with the IntyBASIC SDK), that may stumble a bit more until the game gets going. But, if you start the game first, then drop into the debugger and set the breakpoint, you should be all set. (F4 or Win-C / Cmd-C will drop you into the debugger.) The advantage of this method is that you can set/unset the breakpoint on $1003 whenever you want, and you don't need to know the address in your code that's calling that location. You could also use the HLT instruction (e.g. ASM HLT), but the resulting program will crash when run w/out the debugger. Also, you will halt every time you encounter that instruction. Edited March 1, 2018 by intvnut 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.