# How can I scroll up or down from Basic?

**URL:** <https://forum.cpcwiki.eu/t/wie-kann-ich-von-basic-aus-hoch-bzw-runterscrollen/502>\
**Category:** Programming\
**Tags:** basic\
**Created:** [September 21, 2026, 7:41pm UTC](https://forum.cpcwiki.eu/t/wie-kann-ich-von-basic-aus-hoch-bzw-runterscrollen/502 "2026-09-21T19:41:13Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![harzretro](https://forum.cpcwiki.eu/letter_avatar_proxy/v4/letter/h/73ab20/32.png) [@harzretro](https://forum.cpcwiki.eu/u/harzretro)\
**Post date:** [September 21, 2026, 7:41pm UTC](https://forum.cpcwiki.eu/t/wie-kann-ich-von-basic-aus-hoch-bzw-runterscrollen/502/1 "2026-09-21T19:41:13Z")

</div>

One direction is easy, of course: `locate 1,25:print`. But how can I scroll up or even sideways (is the latter even possible?) — without using `Poke` and ideally without a `Call`?

My demo is already pretty far along, currently featuring 8 effects in “pure BASIC” 🙂

---

<div class="post-metadata">

**Author:** ![eto](https://forum.cpcwiki.eu/user_avatar/forum.cpcwiki.eu/eto/32/24_2.png) [@eto](https://forum.cpcwiki.eu/u/eto)\
**Post date:** [September 21, 2026, 9:47pm UTC](https://forum.cpcwiki.eu/t/wie-kann-ich-von-basic-aus-hoch-bzw-runterscrollen/502/2 "2026-09-21T21:47:11Z")

</div>

You can use control code 11 to move the cursor up. if that happens at a window boundary, the window content will (soft)scroll. If you have not specified any window, it will scroll the whole screen if your cursor is located in the first line of the screen.

sideways soft-scrolling (afaik) won’t work in BASIC but you could use hardware-scrolling using the CRTC registers with OUT commands.

> **[Amstrad CPC character set](https://en.wikipedia.org/wiki/Amstrad_CPC_character_set)**
>
> The Amstrad CPC character set (alternatively known as the BASIC graphics character set) is the character set used in the Amstrad CPC series of 8-bit personal computers when running BASIC (the default mode, until it boots into CP/M). This character set existed in the built-in "lower" ROM chip. It is based on ASCII-1967, with the exception of character 0x5E which is the up arrow instead of the circumflex, as it is in ASCII-1963, a feature shared with other character sets of the time. Apart Each of ...

---

<div class="post-metadata">

**Author:** ![Anthony\_Flack](https://forum.cpcwiki.eu/user_avatar/forum.cpcwiki.eu/anthony_flack/32/35_2.png) [@Anthony\_Flack](https://forum.cpcwiki.eu/u/Anthony_Flack)\
**Post date:** [September 22, 2026, 12:18am UTC](https://forum.cpcwiki.eu/t/wie-kann-ich-von-basic-aus-hoch-bzw-runterscrollen/502/3 "2026-09-22T00:18:47Z")

</div>

Out commands to the CRTC registers are generally the way it’s done. I don’t see why that wouldn’t count as “pure basic”.

---

<div class="post-metadata">

**Author:** ![harzretro](https://forum.cpcwiki.eu/letter_avatar_proxy/v4/letter/h/73ab20/32.png) [@harzretro](https://forum.cpcwiki.eu/u/harzretro)\
**Post date:** [September 22, 2026, 5:55am UTC](https://forum.cpcwiki.eu/t/wie-kann-ich-von-basic-aus-hoch-bzw-runterscrollen/502/4 "2026-09-22T05:55:34Z")

</div>

It’s just a “quirk” of mine 😉  
Or how about Peek and Poke?  
That’s actually still BASIC too — and that’s how Sprites etc. are explained on the C64 as well.  
But that’s precisely my point — showing what’s possible without “purely internal” routines — i.e., the things that developers make directly accessible via commands.

OUT is really a middle ground there — since it’s a means of communication.  
CALL is a direct invocation of an internal routine. Unfortunately, so far, I can’t quite get around it…

---

<div class="post-metadata">

**Author:** ![eto](https://forum.cpcwiki.eu/user_avatar/forum.cpcwiki.eu/eto/32/24_2.png) [@eto](https://forum.cpcwiki.eu/u/eto)\
**Post date:** [September 22, 2026, 2:46pm UTC](https://forum.cpcwiki.eu/t/wie-kann-ich-von-basic-aus-hoch-bzw-runterscrollen/502/5 "2026-09-22T14:46:52Z")

</div>

> [@harzretro](#):
>
> It’s just a “quirk” of mine 😉  
> Or how about Peek and Poke

On the C64 you can poke into registers. On the CPC a poke will only change data in RAM but will not change any registers. You will use OUT for that.

---

<div class="post-metadata">

**Author:** ![eto](https://forum.cpcwiki.eu/user_avatar/forum.cpcwiki.eu/eto/32/24_2.png) [@eto](https://forum.cpcwiki.eu/u/eto)\
**Post date:** [September 22, 2026, 2:51pm UTC](https://forum.cpcwiki.eu/t/wie-kann-ich-von-basic-aus-hoch-bzw-runterscrollen/502/6 "2026-09-22T14:51:30Z")

</div>

> [@Anthony\_Flack](#):
>
> Out commands to the CRTC registers are generally the way it’s done. I don’t see why that wouldn’t count as “pure basic”.

Sure, it’s still a BASIC command but using OUT you are messing with the hardware directly and have to understand what’s going on as BASIC won’t compensate for your actions. E.g. the screen position will change and a LOCATE 1,1 will have a different position on screen after you scroll via OUT. That’s what I meant.

---

<div class="post-metadata">

**Author:** ![harzretro](https://forum.cpcwiki.eu/letter_avatar_proxy/v4/letter/h/73ab20/32.png) [@harzretro](https://forum.cpcwiki.eu/u/harzretro)\
**Post date:** [September 22, 2026, 6:14pm UTC](https://forum.cpcwiki.eu/t/wie-kann-ich-von-basic-aus-hoch-bzw-runterscrollen/502/7 "2026-09-22T18:14:49Z")

</div>

The thing with chr 11 works great! You can really do a lot with that. 🙂

---

<div class="post-metadata">

**Author:** ![eto](https://forum.cpcwiki.eu/user_avatar/forum.cpcwiki.eu/eto/32/24_2.png) [@eto](https://forum.cpcwiki.eu/u/eto)\
**Post date:** [September 23, 2026, 10:10am UTC](https://forum.cpcwiki.eu/t/wie-kann-ich-von-basic-aus-hoch-bzw-runterscrollen/502/8 "2026-09-23T10:10:07Z")

</div>

> [@harzretro](#):
>
> The thing with chr 11 works great! You can really do a lot with that. 🙂

and a last quick hint: you can press CONTROL+K on the keyboard to enter the control code 11 into a String. Instead of print chr$(11) you then have print “↑” in your code, which is a bit faster than chr$.

---

<div class="post-metadata">

**Author:** ![harzretro](https://forum.cpcwiki.eu/letter_avatar_proxy/v4/letter/h/73ab20/32.png) [@harzretro](https://forum.cpcwiki.eu/u/harzretro)\
**Post date:** [September 25, 2026, 9:00am UTC](https://forum.cpcwiki.eu/t/wie-kann-ich-von-basic-aus-hoch-bzw-runterscrollen/502/9 "2026-09-25T09:00:12Z")

</div>

That will probably make it into the final version. I’m coding on the PC in a text editor - so that makes it a bit harder.  
But what I’ve got so far looks interesting 🙂
