move.w #-1,-(sp) move.w #$58,-(sp) ;get_original_rez trap #14 addq.l #4,sp move.w d0,org_falcon_rez move.w $ffff82aa.w,org_overscanbtm ;bottom overscan ;This bit will automatically set the falcon video res but it will ;preserve the RGB/VGA mode. ; fedcba9876543210 ;Octet de poids faible : S O P V 8 N N N move.w d0,d1 and.w #%00010000,d1 move.w #%0000000010100010,d0 or.w d1,d0 move.w d0,-(sp) move.w #$58,-(sp) trap #14 addq.l #4,sp ;Octet de poids faible : S O P V 8 N N N ; N Bits par pixels : 4 -> 16 bits 65536 colours ; 3 -> 8 bits 256 colours ; 2 -> 4 bits 16 colours ; 1 -> 2 bits 1 colours ; 0 -> 1 bit ; 8 Flag 80 colonnes : 1 -> mode 80 colonnes ; 0 -> mode 40 colonnes ; V Flag VGA : 1 -> mode moniteur VGA ; 0 -> mode TV ; P Flag PAL : 1 -> mode PAL ; 0 -> mode NTSC ; O Flag Overscan : 1 -> Overscan ON (impossible en VGA) ; 0 -> Overscan OFF ;Where 'mode' looks like this:- ; bits meaning ; 0-2 These bits form a value so that 2^X represents the ; number of bits/pixel ; 3 80 coloun flag (if set, 80 columns, otherwise 40) ; 4 VGA Flag (if set, VGA mode, if not TV/RGB mode) ; 5 PAL Flag (if set, PAL mode, otherwise NTSC) ; 6 Overscan Flag (not valid with VGA) ; 7 ST compatibility flag ; 8 Vertical flag (if set, enables interlace mode on a ; colour monitor or double line mode on a VGA monitor) ; 9-15 Reserved (set 0)