|
Post by bjonte on Jan 8, 2021 12:09:28 GMT
The only Star Trek themed game I have enjoyed is Netrek. An old multiplayer game that I played in school on monochrome screens.
|
|
|
Post by bjonte on Jan 3, 2021 14:43:13 GMT
I feel that there’s a lot of uncertainty around the question. To use an array you need to have some memory somewhere to store it. Do you have a location for it?
When you know where it is you need to know the size since that affects how simple the solution will be. To read or write into the array you will need a base address and an index register to access the data. Reading byte element 5 in an array starting at $4000 could be done like this.
ldx #5 lda $4000,x
A would now contain the element. This works when storing bytes in an array of no more than 255 elements. If there are more elements it gets trickier. You need to constuct a pointer, in zero page preferrably, and access the data through that pointer.
ldy #0 lda (pointer),y
To construct the pointer you need to add the byte offset to the array start address.
If you need to store larger elements it gets trickier. You then need to calculate an offset by multiplying the element size with the index. Usually you make sure you have sizes of 2^n, which makes it possible to shift instead of multiplying.
|
|
|
Post by bjonte on Jan 2, 2021 3:57:33 GMT
You have created an array in BASIC and want to modify it in assembler?
|
|
|
Post by bjonte on Dec 26, 2020 10:46:04 GMT
The Z-code interpreter Ozmoo has been updated with full C128 support. It runs text adventures in 80-column mode, uses RAM to avoid having to load from disk while playing. I ran Hitchhiker's Guide and almost the entire game fits in RAM. That and the 2 MHz speed makes it a smooth experience.
|
|
|
Post by bjonte on Dec 19, 2020 11:20:24 GMT
You seem to be doing the right thing. What isn’t working? Do you get the alarm too soon or too late or not at all?
Do you clear the interrupt bit before setting the alarm?
Do you write hours first and tenths of seconds last?
Are you making sure nothing else is poking around in the timer registers in an interrupt? The kernal is using a timer interrupt to read the keyboard. Have you disabled that?
|
|
|
Post by bjonte on Dec 15, 2020 20:15:33 GMT
Dreamcast even. Impressive!
|
|
|
Post by bjonte on Dec 12, 2020 6:17:31 GMT
Since it’s a show about the future they should have way more of those kinds of things to be believable but I guess they need to hold back a bit.
They portay trans characters later on, which is something they could and should have done long ago as well. There’s an episode in TNG that explores the subject. There’s a gender-less species on a planet and the story revolves around some of them feeling like they are either women or men and being seen as ”sick” people that needs to be cured because of their feeling of not belonging in their assigned gender.
Remember that Star Trek has a history of being progressive and I think that’s a good thing.
|
|
|
Post by bjonte on Dec 11, 2020 21:44:51 GMT
I’m glad we’re all on the same page now.
Yes, I agree that the interesting question is why do you need the exact file size, mirkosoft? Perhaps there’s a better way to design your program to get rid of that difficult requirement.
|
|
|
Post by bjonte on Dec 2, 2020 5:00:25 GMT
gsteemso is right. Files are made up of linked sectors. Each sector begins by pointing to the next track and sector followed by 254 bytes of data. The last points to track 0 (which doesn’t exist) and sector N (which tells how many bytes of data are used in this last sector). So there’s the end marker, the last track/sector pointer.
|
|
|
Post by bjonte on Nov 14, 2020 22:08:21 GMT
If you were to use two computers simultaneously, you would be multi-tasking! Indeed! I’m not so good at that though. I’ll stick with one at a time.
|
|