Why Read Port $A2 after Out to $A0 (Soundprocessor)?

By CrazyBoss

Master (209)

Аватар пользователя CrazyBoss

05-01-2014, 13:10

out ($A0),a
ex (sp),hl
ex (sp),hl
in a,($A2)

what is the meaning to read port $A2, the values are even used later in the code ?

Any suggestions why to do that?, its not for read Joystick or so, its sound.

Для того, чтобы оставить комментарий, необходимо регистрация или !login

By NYYRIKKI

Enlighted (5661)

Аватар пользователя NYYRIKKI

05-01-2014, 13:44

This is the way how you read back register values from PSG... This could be useful ie. when you play a sound effect and you want to return the values back for music player after the effect has been played.