inexorabletash / jsbasic

Applesoft BASIC in JavaScript
https://calormen.com/jsbasic
Other
187 stars 39 forks source link

Support for peek/poke in lowmem #27

Closed bferguson3 closed 5 years ago

bferguson3 commented 5 years ago

Hello!

I love the work you've done so far, it's probably the best tool I've found for coding quickly in BASIC for the A][. The only thing I think is missing is being able to poke/peek the empty 3rd page of memory ($0300-$03cf) for use with custom user variables. Would this be extremely difficult to add? If it's not in the pipeline then I could take a look myself.

Thanks!

inexorabletash commented 5 years ago

What would you do with bytes stored in memory locations like $300 given that assembly routines are not supported? It seems like a strange way to store data.

On Feb 24, 2019, at 7:37 AM, bferguson3 notifications@github.com wrote:

Hello!

I love the work you've done so far, it's probably the best tool I've found for coding quickly in BASIC for the A][. The only thing I think is missing is being able to poke/peek the empty 3rd page of memory ($0300-$03cf) for use with custom user variables. Would this be extremely difficult to add? If it's not in the pipeline then I could take a look myself.

Thanks!

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

bferguson3 commented 5 years ago

I was under the impression bitwise operations were supported in Apple basic but they and and or operations are clearly different than the assembly counterparts. That being the case this is unnecessary, but thanks for the response.

2019年2月23日(土) 16:19 Joshua Bell notifications@github.com:

What would you do with bytes stored in memory locations like $300 given that assembly routines are not supported? It seems like a strange way to store data.

On Feb 24, 2019, at 7:37 AM, bferguson3 notifications@github.com wrote:

Hello!

I love the work you've done so far, it's probably the best tool I've found for coding quickly in BASIC for the A][. The only thing I think is missing is being able to poke/peek the empty 3rd page of memory ($0300-$03cf) for use with custom user variables. Would this be extremely difficult to add? If it's not in the pipeline then I could take a look myself.

Thanks!

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/inexorabletash/jsbasic/issues/27#issuecomment-466696702, or mute the thread https://github.com/notifications/unsubscribe-auth/AfcAM6X_rLUCO0L3nGye4ORiAi4OxDl2ks5vQbBqgaJpZM4bOJcG .

inexorabletash commented 5 years ago

Okay - thanks for clarifying.

It's possible to add, and at least would offer a simple floor-and-clamp to 256 operation, but without a use case I worry that it would let users assume they can poke in routines to call.