Print routine ohne OS

1, 2

von cas » Do 19. Jul 2007, 16:48
Hier die Routine aus OS++ (Atari++ OS)

Code: Alles auswählen
      ;; now translate the character from ASCII into the internal representation                                           
        lda ScreenByte                                                                                                       
        ldy GfxMode                                                                                                         
        ldx Shifter,y           ; check whether the indicated mode is a text mode and requires translation                   
        bne gfxmode                                                                                                         
        rol a                                                                                                               
        rol a                                                                                                               
        rol a                                                                                                               
        rol a                                                                                                               
        and #$03                ; relevant bits->A                                                                           
        tax                                                                                                                 
        lda ScreenByte          ; get the character back                                                                     
        eor XlateMask,x         ; translate it             


Unterschied. Benutzt EOR (XOR) anstatt ORA (OR).

Carsten

von mp-one » Fr 20. Jul 2007, 09:08
Hallo Carsten,

aha, eor statt ora. Mal schauen. Im OS-Listing ist ja um diese Routinen noch einiges drumherum, was mit Screen-Output bei verschiedenen Grafikstufen zu tun hat. So ganz habe ich's noch nicht gepeilt, was die da machen. Vielleicht kannst Du (bei Zeit und Gelegenheit) am WE auf der Fujijama mehr dazu rausfinden. So, dann viel Spaß auf der Fujijama. Evtl. wird unsere WASEO-Truppe nächstes Jahr auch mal vorbeischauen, muss die Jungs mal anhauen.

Bye, Michael
1, 2