How to restore text mode?

ASM Development for the Sharp x68000 (X68k)
Post Reply
GHo0ST
Posts: 2
Joined: Sun Aug 14, 2022 6:35 pm

How to restore text mode?

Post by GHo0ST » Thu Sep 29, 2022 6:28 pm

Hi Keith,

I'm working on a small something and have found your tutorials invaluable, thank you.

My question is, how do you restore text mode after going into graphics mode? I've tried using

move.w #%0000000011000000,$e82600
dc.w $ff00

and while this gets me back to DOS, the text looks like its still in 256x256 res, rather than the 'normal' text res. I guess I must be missing something obvious but not sure what...

User avatar
akuyou
Posts: 539
Joined: Mon Apr 22, 2019 3:19 am
Contact:

Re: How to restore text mode?

Post by akuyou » Sat Oct 01, 2022 2:23 pm

I think it's 768x512 high res mode. As I'm sure you know, there is no such thing as a text mode - all graphics modes have a text layer.

The settings are on this page, but I think I made a mistake in the value for $E80028 before, which was causing the screen size to be wrong.

https://www.chibiakumas.com/68000/x68000.php
Chibi Akuma(s) Comedy-Horror 8-bit Bullet Hell shooter! // 「チビ悪魔」可笑しいゴシックSTG ! // Work in Progress: ChibiAliens

Interested in CPU's :Z80,6502,68000,6809,ARM,8086,RISC-V
Learning: 65816,ARM,8086,6809

GHo0ST
Posts: 2
Joined: Sun Aug 14, 2022 6:35 pm

Re: How to restore text mode?

Post by GHo0ST » Sun Oct 02, 2022 7:51 am

That worked perfectly, thank you! 8-)

Post Reply

Return to “X68000 Assembly Programming”