2ちゃんねる ■掲示板に戻る■ 全部 1- 最新50    

■ このスレッドは過去ログ倉庫に格納されています

究極の8ビット機を妄想するスレ Part 10

74 :ナイコンさん :2020/04/27(月) 10:00:34.44 ID:My1Q1lWw0.net
割込み用ルーチンを置けるのは、ってだけじゃないかな?
>最後に、割り込みがない限り、エミュレーションモードコードはバンク0にある必要はありません。
>セクション6.3.1、6.3.1.1、および6.3.2で述べたように、割り込みはスタックのバンクバイトをプッシュしません(RTIはプルしません)。
>ただし、割り込みが発生しないことが保証されている限り、ゼロ以外のバンク(RESETを除く、それからは戻らないため)の場合、
>ゼロ以外のバンクは、データだけでなくコードにも使用できます。

http://6502.org/tutorials/65c816opcodes.html
Finally, emulation mode code does not have to be in bank 0, as long as there are no interrupts.
As noted in sections 6.3.1, 6.3.1.1, and 6.3.2, interrupts do not push (and RTI does not pull) the bank byte on the stack,
but as long as you can guarantee that interrupts will not occur when in a nonzero bank (other than RESET, since you wouldn't return from that), then nonzero banks can be used for code as well as data.

総レス数 78
23 KB
新着レスの表示

掲示板に戻る 全部 前100 次100 最新50
read.cgi ver 2014.07.20.01.SC 2014/07/20 D ★