]> git.sur5r.net Git - cc65/commitdiff
Normalized coding style.
authorol.sc <ol.sc@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Wed, 8 Feb 2012 15:23:45 +0000 (15:23 +0000)
committerol.sc <ol.sc@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Wed, 8 Feb 2012 15:23:45 +0000 (15:23 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@5497 b7a2c559-68d2-44c3-8de9-860c34a00d81

21 files changed:
libsrc/geos-common/common/_afailed.c
libsrc/geos-common/common/copydata.s
libsrc/geos-common/common/memcpy.s
libsrc/geos-common/common/memmove.s
libsrc/geos-common/common/memset.s
libsrc/geos-common/common/zerobss.s
libsrc/geos-common/conio/Makefile
libsrc/geos-common/conio/_scrsize.s
libsrc/geos-common/conio/cclear.s
libsrc/geos-common/conio/cgetc.s
libsrc/geos-common/conio/chline.s
libsrc/geos-common/conio/clrscr.s
libsrc/geos-common/conio/color.s
libsrc/geos-common/conio/cpputs.s
libsrc/geos-common/conio/cputc.s
libsrc/geos-common/conio/cursor.s
libsrc/geos-common/conio/cvline.s
libsrc/geos-common/conio/gotoxy.s
libsrc/geos-common/conio/kbhit.s
libsrc/geos-common/conio/revers.s
libsrc/geos-common/conio/where.s

index 10da48d0ead9995e3073e65b7efa217cbbc44f45..e446cf565a8bc6fb62e97bb58e68e5c8f946ce2a 100644 (file)
@@ -10,7 +10,6 @@
 
 void _afailed (char* file, unsigned line)
 {
-
     ExitTurbo();
 
     drawWindow.top = 0;
index 26e2cef10ed318865201246ad0fe6136d2d4f78b..95425aae6182357510e92f0eafa3656aae9e62b7 100644 (file)
@@ -4,10 +4,11 @@
 ; Copy the data segment from the LOAD to the RUN location
 ;
 
-       .export         copydata
-       .import         __DATA_LOAD__, __DATA_RUN__, __DATA_SIZE__
-       .include        "geossym.inc"
-       .include        "jumptab.inc"
+           .export copydata
+           .import __DATA_LOAD__, __DATA_RUN__, __DATA_SIZE__
+
+           .include "geossym.inc"
+           .include "jumptab.inc"
 
 copydata:
        lda #<__DATA_SIZE__     ; no need to check if it is == 0
index 54fb963726026acefe09540a36af5b0b20bbc8a1..1afbf456aa10cefe9511cae9ef37b345e2c62b4d 100644 (file)
@@ -4,7 +4,7 @@
 ; Maciej 'YTM/Elysium' Witkowiak, 15.07.2001
 ;
 
-       .export         _memcpy
-       .import         _MoveData
+           .export _memcpy
+           .import _MoveData
 
-_memcpy        = _MoveData
+_memcpy                = _MoveData
index dad3d8453f851e0e9ac5ef74435a609be28aa6fd..e5daa93a65b3793fabe04dad66c3077bf850e3fb 100644 (file)
@@ -4,7 +4,7 @@
 ; Maciej 'YTM/Elysium' Witkowiak, 15.07.2001
 ;
 
-       .export         _memmove
-       .import         _MoveData
+           .export _memmove
+           .import _MoveData
 
-_memmove = _MoveData
+_memmove       = _MoveData
index 77d830f6e1c398e1c2acb535349f7805b8f8aca1..67c54f8bb5190d9493dc87e538dbb2f853e9a376 100644 (file)
@@ -6,9 +6,9 @@
 ; Maciej 'YTM/Elysium' Witkowiak, 20.08.2003
 ;
 
-       .export _memset, _bzero, __bzero
-       .import _ClearRam, _FillRam
+           .export _memset, _bzero, __bzero
+           .import _ClearRam, _FillRam
 
-_bzero = _ClearRam
-__bzero = _ClearRam
-_memset = _FillRam
+_bzero         = _ClearRam
+__bzero                = _ClearRam
+_memset                = _FillRam
index 6b5bcdfa442271b7fbe48fb0ec85746d658f25c5..e2a6cbe06bc8b84f84f857c89453a6789513d1c5 100644 (file)
@@ -5,21 +5,21 @@
 ; Zero the bss segment.
 ;
 
-       .export         zerobss
-       .import         __BSS_RUN__, __BSS_SIZE__
-
-        .include "jumptab.inc"
-        .include "geossym.inc"
+           .export zerobss
+           .import __BSS_RUN__, __BSS_SIZE__
+           
+            .include "jumptab.inc"
+            .include "geossym.inc"
 
 .code
 
 zerobss:
-           lda #<__BSS_SIZE__
-           ldx #>__BSS_SIZE__
-           sta r0L
-           stx r0H
-           lda #<__BSS_RUN__
-           ldx #>__BSS_RUN__
-           sta r1L
-           stx r1H
-           jmp ClearRam
+       lda #<__BSS_SIZE__
+       ldx #>__BSS_SIZE__
+       sta r0L
+       stx r0H
+       lda #<__BSS_RUN__
+       ldx #>__BSS_RUN__
+       sta r1L
+       stx r1H
+       jmp ClearRam
index ce71b0bef1bde93cc1dee4de52cea12fcaae508e..2a8eac50cfb4c9fb2535fd70268b1bde41f7d38b 100644 (file)
@@ -7,14 +7,14 @@
 
 S_OBJS +=      _scrsize.o      \
                cclear.o        \
-               chline.o        \
-               cvline.o        \
                cgetc.o         \
+               chline.o        \
                clrscr.o        \
                color.o         \
-               cputc.o         \
                cpputs.o        \
+               cputc.o         \
                cursor.o        \
+               cvline.o        \
                gotoxy.o        \
                kbhit.o         \
                revers.o        \
index fb4399f790976f4c511e5b970c7b39f8e93d39cd..6126cdaa88040d7afdd0923ebd6e46ab73e9122a 100644 (file)
@@ -1,4 +1,3 @@
-
 ;
 ; Maciej 'YTM/Elysium' Witkowiak
 ;
@@ -7,44 +6,46 @@
 ; 6.3.2001, 17.4.2003
 
 
-       .include        "geossym.inc"
+       .export xsize, ysize
+       .export screensize
+       .importz cursor_r, cursor_c
+       .import _cursor
+       .constructor initscrsize
+                     
+       .include "geossym.inc"
 
-       .export         xsize, ysize
-       .export         screensize
-       .importzp       cursor_r, cursor_c
-       .import         _cursor
-       .constructor    initscrsize
-                      
-.segment        "INIT"
+.segment       "INIT"
 
 initscrsize:
 .ifdef  __GEOS_CBM__
-       lda     graphMode
-       bpl     L1
-       lda     #80             ; 80 columns (more or less)
-       .byte   $2c
-L1:    lda     #40             ; 40 columns (more or less)
-       sta     xsize
-       lda     #24             ; something like that for Y size
+       lda graphMode
+       bpl L1
+       lda #80                 ; 80 columns (more or less)
+       .byte $2c
+L1:    lda #40                 ; 40 columns (more or less)
+       sta xsize
+       lda #24                 ; something like that for Y size
 .else
-       lda     #70             ; 70 columns (more or less)
-       sta     xsize
-       lda     #23             ; something like that for Y size
+       lda #70                 ; 70 columns (more or less)
+       sta xsize
+       lda #23                 ; something like that for Y size
 .endif
-       sta     ysize
-       ldx     #1
-       stx     cursor_r
-       dex
-       stx     cursor_c
-       txa
-       jmp     _cursor         ; home and update cursor
-
-screensize:
-       ldx     xsize
-       ldy     ysize
+       sta ysize
+       ldx #1
+       stx cursor_r
+       dex 
+       stx cursor_c
+       txa 
+       jmp _cursor             ; home and update cursor
+
+screensize: 
+       ldx xsize
+       ldy ysize
        rts
 
 .bss
 
-xsize:         .res    1
-ysize: .res    1
+xsize:
+       .res 1
+ysize:
+       .res 1
index a346366f85f69159ef6c16a620c87fb4e8c243d4..7b5710dd6128c95ecac2ee97db3e1aaebd49db7f 100644 (file)
@@ -6,46 +6,46 @@
 ; void cclearxy (unsigned char x, unsigned char y, unsigned char length);
 ; void cclear (unsigned char length);
 
+           .export _cclearxy, _cclear
+           .import popa, _gotoxy, fixcursor
+           .importzp cursor_x, cursor_y, cursor_c
+
            .include "jumptab.inc"
            .include "geossym.inc"
 
-           .export             _cclearxy, _cclear
-           .import             popa, _gotoxy, fixcursor
-           .importzp           cursor_x, cursor_y, cursor_c
-
 _cclearxy:
-               pha                     ; Save the length
-       jsr     popa            ; Get y
-               jsr     _gotoxy         ; Call this one, will pop params
+       pha                     ; Save the length
+       jsr popa                ; Get y
+       jsr _gotoxy             ; Call this one, will pop params
        pla                     ; Restore the length
 
 _cclear:
-       cmp     #0              ; Is the length zero?
-       beq     L9              ; Jump if done
+       cmp #0                  ; Is the length zero?
+       beq L9                  ; Jump if done
        tax
-       lda     cursor_x        ; left start
-       sta     r3L
-       lda     cursor_x+1
-       sta     r3L+1
-       lda     cursor_y        ; level
-       sta     r2L
+       lda cursor_x            ; left start
+       sta r3L
+       lda cursor_x+1
+       sta r3L+1
+       lda cursor_y            ; level
+       sta r2L
        clc
-       adc     #8
-       sta     r2H
+       adc #8
+       sta r2H
        txa                     ; right end
        clc
-       adc     cursor_c
-       sta     cursor_c
-       sta     r4L
-       ldx     #r4
-       ldy     #3
-       jsr     DShiftLeft
-       lda     curPattern      ; store current pattern
+       adc cursor_c
+       sta cursor_c
+       sta r4L
+       ldx #r4
+       ldy #3
+       jsr DShiftLeft
+       lda curPattern          ; store current pattern
        pha
-       lda     #0              ; set pattern to clear
-       jsr     SetPattern
-       jsr     Rectangle
+       lda #0                  ; set pattern to clear
+       jsr SetPattern
+       jsr Rectangle
        pla
-       jsr     SetPattern      ; restore pattern
-       jsr     fixcursor
+       jsr SetPattern          ; restore pattern
+       jsr fixcursor
 L9:    rts
index 9523cf4d86b276ee075f9873ea37c4725d7d00c0..b24ca54e7cfa77d4c93237a0685e23f52f55c181 100644 (file)
@@ -1,4 +1,3 @@
-
 ;
 ; Maciej 'YTM/Elysium' Witkowiak
 ;
 
 _cgetc:
 ; show cursor if needed
-           lda cursor_flag
-           beq L0
+       lda cursor_flag
+       beq L0
 
-           jsr update_cursor
-           lda cursor_x
-           ldx cursor_x+1
-           sta stringX
-           stx stringX+1
-           lda cursor_y
-           sec
-           sbc curHeight
-           sta stringY
-           jsr PromptOn
+       jsr update_cursor
+       lda cursor_x
+       ldx cursor_x+1
+       sta stringX
+       stx stringX+1
+       lda cursor_y
+       sec
+       sbc curHeight
+       sta stringY
+       jsr PromptOn
 
-L0:        jsr GetNextChar
-           tax
-           beq L0
-           pha
-           jsr PromptOff
-           pla
-           ldx #0
-           rts
+L0:    jsr GetNextChar
+       tax
+       beq L0
+       pha
+       jsr PromptOff
+       pla
+       ldx #0
+       rts
index aedc646ab5e5bc95d139890c29117411bb949c8b..d4b4c20a916c8c207b3cde966c0f9db993bafc4f 100644 (file)
@@ -6,40 +6,40 @@
 ; void chlinexy (unsigned char x, unsigned char y, unsigned char length);
 ; void chline (unsigned char length);
 
+           .export _chlinexy, _chline
+           .import popa, _gotoxy, fixcursor
+           .importzp cursor_x, cursor_y, cursor_c
+
            .include "jumptab.inc"
            .include "geossym.inc"
 
-           .export             _chlinexy, _chline
-           .import             popa, _gotoxy, fixcursor
-           .importzp           cursor_x, cursor_y, cursor_c
-
 _chlinexy:
                pha                     ; Save the length
-       jsr     popa            ; Get y
-               jsr     _gotoxy         ; Call this one, will pop params
+       jsr popa                ; Get y
+               jsr _gotoxy             ; Call this one, will pop params
        pla                     ; Restore the length
 
 _chline:
-       cmp     #0              ; Is the length zero?
-       beq     L9              ; Jump if done
+       cmp #0                  ; Is the length zero?
+       beq L9                  ; Jump if done
        tax
-       lda     cursor_x        ; left start
-       sta     r3L
-       lda     cursor_x+1
-       sta     r3L+1
-       lda     cursor_y        ; level
+       lda cursor_x            ; left start
+       sta r3L
+       lda cursor_x+1
+       sta r3L+1
+       lda cursor_y            ; level
        sec
-       sbc     #4              ; in the middle of a cell
-       sta     r11L
+       sbc #4                  ; in the middle of a cell
+       sta r11L
        txa                     ; right end
        clc
-       adc     cursor_c
-       sta     cursor_c
-       sta     r4L
-       ldx     #r4
-       ldy     #3
-       jsr     DShiftLeft
-       lda     #%11111111      ; pattern
-       jsr     HorizontalLine
-       jsr     fixcursor
+       adc cursor_c
+       sta cursor_c
+       sta r4L
+       ldx #r4
+       ldy #3
+       jsr DShiftLeft
+       lda #%11111111          ; pattern
+       jsr HorizontalLine
+       jsr fixcursor
 L9:    rts
index 50be5b094d6b2a6405089f7fc5eb4e850966dca6..47cda5cce9c63e46c525de930df6b185ea333262 100644 (file)
@@ -1,4 +1,3 @@
-
 ;
 ; Maciej 'YTM/Elysium' Witkowiak
 ;
@@ -7,48 +6,47 @@
 ; void clrscr (void);
 
            .export _clrscr
+           .import fixcursor
+           .importzp cursor_c, cursor_r
 
            .include "jumptab.inc"
            .include "geossym.inc"
            .include "const.inc"
 
-           .import fixcursor
-           .importzp cursor_c, cursor_r
-
 _clrscr:
-           lda #ST_WR_FORE | ST_WR_BACK
-           sta dispBufferOn
-           lda curPattern              ; save current pattern
-           pha
-           lda #0                      ; set pattern to clear
-           jsr SetPattern
-           ldx #0
-           stx r3L
-           stx r3H
-           stx r2L
-           stx cursor_c
-           inx
-           stx cursor_r
-           jsr fixcursor               ; home cursor
+       lda #ST_WR_FORE | ST_WR_BACK
+       sta dispBufferOn
+       lda curPattern          ; save current pattern
+       pha
+       lda #0                  ; set pattern to clear
+       jsr SetPattern
+       ldx #0
+       stx r3L
+       stx r3H
+       stx r2L
+       stx cursor_c
+       inx
+       stx cursor_r
+       jsr fixcursor           ; home cursor
 .ifdef  __GEOS_CBM__
-           lda #199
-           sta r2H
-           lda graphMode
-           bpl L40
-           lda #>639                   ; 80 columns
-           ldx #<639
-           bne L99
-L40:       lda #>319                   ; 40 columns
-           ldx #<319
+       lda #199
+       sta r2H
+       lda graphMode
+       bpl L40
+       lda #>639               ; 80 columns
+       ldx #<639
+       bne L99
+L40:   lda #>319               ; 40 columns
+       ldx #<319
 L99:
 .else
-           lda #191
-           sta r2H
-           lda #>559
-           ldx #<559
+       lda #191
+       sta r2H
+       lda #>559
+       ldx #<559
 .endif
-           sta r4H
-           stx r4L
-           jsr Rectangle
-           pla
-           jmp SetPattern              ; restore pattern
+       sta r4H
+       stx r4L
+       jsr Rectangle
+       pla
+       jmp SetPattern          ; restore pattern
index e5498041ea348e949411de771572d358ab0ab174..1682088025c47d129faa6962c320dfe8b27abaf8 100644 (file)
@@ -1,4 +1,3 @@
-
 ;
 ; Maciej 'YTM/Elysium' Witkowiak
 ;
 ;
 
 
-       .export         _textcolor, _bgcolor, _bordercolor
+           .export _textcolor, _bgcolor, _bordercolor
 
 ; for GEOS 2.0 there is no color support, perhaps Wheels has it
 
 _textcolor:
 _bgcolor:
 _bordercolor:
-               rts
+       rts
index 99d4e16d99ff38c7894d40b815a539af58bf0ff5..be81dcf055cc3518060e8cf4aa4c284574be359c 100644 (file)
@@ -1,4 +1,3 @@
-
 ;
 ; Maciej 'YTM/Elysium' Witkowiak
 ;
@@ -12,7 +11,6 @@
 ; does not update cursor position
 
            .export _cpputsxy, _cpputs
-
            .import _gotoxy
            .import popa
            .importzp cursor_x, cursor_y
            .include "jumptab.inc"
 
 _cpputsxy:
-       sta     r0L             ; Save s for later
-       stx     r0H
-       jsr     popa            ; Get Y
-       jsr     _gotoxy         ; Set cursor, pop x
-       jmp     L0              ; Same as cputs...
+       sta r0L                 ; Save s for later
+       stx r0H
+       jsr popa                ; Get Y
+       jsr _gotoxy             ; Set cursor, pop x
+       jmp L0                  ; Same as cputs...
 
 _cpputs:
-       sta     r0L             ; Save s
-       stx     r0H
-L0:    ldy     #0
-       lda     (r0),y
-       bne     L1              ; Jump if there's something
+       sta r0L                 ; Save s
+       stx r0H
+L0:    ldy #0
+       lda (r0),y
+       bne L1                  ; Jump if there's something
        rts
 
-L1:    lda     cursor_x
-       sta     r11L
-       lda     cursor_x+1
-       sta     r11H
-       lda     cursor_y
-       sta     r1H
-       jmp     PutString
+L1:    lda cursor_x
+       sta r11L
+       lda cursor_x+1
+       sta r11H
+       lda cursor_y
+       sta r1H
+       jmp PutString
index f36689f7ddd01f4d2c171b1e08216e7e6fd7fe33..f0bbb766d99fd1ba711c7be5bf8e6abd7592e254 100644 (file)
@@ -1,4 +1,3 @@
-
 ;
 ; Maciej 'YTM/Elysium' Witkowiak
 ;
@@ -24,7 +23,6 @@
 ; UPLINE = ?, KEY_UPARROW = GOTOY, ...
 
            .export _cputcxy, _cputc, update_cursor
-
            .import _gotoxy, fixcursor
            .import popa
            .import xsize,ysize
@@ -35,9 +33,9 @@
            .include "jumptab.inc"
 
 _cputcxy:
-       pha                     ; Save C
-       jsr     popa            ; Get Y
-       jsr     _gotoxy         ; Set cursor, drop x
+       pha                     ; Save C
+       jsr popa                ; Get Y
+       jsr _gotoxy             ; Set cursor, drop x
        pla                     ; Restore C
 
 ; Plot a character - also used as internal function
@@ -45,58 +43,58 @@ _cputcxy:
 _cputc:
        tax                     ; save character
 ; some characters 0-31 are not safe for PutChar
-       cmp     #$20
-       bcs     L1
-       cmp     #CR
-       beq     do_cr
-       cmp     #LF
-       beq     do_lf
-       cmp     #KEY_DELETE
-       bne     L0
-       ldx     #BACKSPACE
+       cmp #$20
+       bcs L1
+       cmp #CR
+       beq do_cr
+       cmp #LF
+       beq do_lf
+       cmp #KEY_DELETE
+       bne L0
+       ldx #BACKSPACE
        sec
-       bcs     L2
+       bcs L2
 L0:    rts
 
 L1:    clc
 L2:    php
-       lda     cursor_x
-       sta     r11L
-       lda     cursor_x+1
-       sta     r11H
-       lda     cursor_y
-       sta     r1H
+       lda cursor_x
+       sta r11L
+       lda cursor_x+1
+       sta r11H
+       lda cursor_y
+       sta r1H
        txa
-       jsr     PutChar
+       jsr PutChar
        plp
-       bcs     update_cursor
+       bcs update_cursor
 
-       inc     cursor_c
-       lda     cursor_c
-       cmp     xsize                   ; hit right margin?
-       bne     update_cursor
-       lda     #0                      ; yes - do cr+lf
-       sta     cursor_c
-do_lf: inc     cursor_r
-       lda     cursor_r
-       cmp     ysize                   ; hit bottom margin?
-       bne     update_cursor
-       dec     cursor_r                ; yes - stay in the last line
+       inc cursor_c
+       lda cursor_c
+       cmp xsize               ; hit right margin?
+       bne update_cursor
+       lda #0                  ; yes - do cr+lf
+       sta cursor_c
+do_lf: inc cursor_r
+       lda cursor_r
+       cmp ysize               ; hit bottom margin?
+       bne update_cursor
+       dec cursor_r            ; yes - stay in the last line
 
 update_cursor:
-       jsr     fixcursor
-       lda     cursor_x
-       sta     r4L
-       lda     cursor_x+1
-       sta     r4H
-       lda     cursor_y
+       jsr fixcursor
+       lda cursor_x
+       sta r4L
+       lda cursor_x+1
+       sta r4H
+       lda cursor_y
        sec
-       sbc     curHeight
-       sta     r5L
-       lda     #1              ; update cursor prompt position
-       sta     r3L
-       jmp     PosSprite
+       sbc curHeight
+       sta r5L
+       lda #1                  ; update cursor prompt position
+       sta r3L
+       jmp PosSprite
 
-do_cr: lda     #0
-       sta     cursor_c
-       beq     update_cursor
+do_cr: lda #0
+       sta cursor_c
+       beq update_cursor
index 0693c82eeb10e8a8db4649d4c98a5d06c6e6e904..7ba3c6fff16cb3b8db42833f820ea1f2c8392030 100644 (file)
@@ -1,4 +1,3 @@
-
 ;
 ; Maciej 'YTM/Elysium' Witkowiak
 ;
@@ -9,20 +8,21 @@
            .export _cursor
            .import update_cursor
            .importzp cursor_flag
+
            .include "jumptab.inc"
            .include "geossym.inc"
 
 _cursor:
 
        tay                     ; onoff into Y
-       ldx     #0              ; High byte of result
-       lda     cursor_flag     ; Get old value
+       ldx #0                  ; High byte of result
+       lda cursor_flag         ; Get old value
        pha
-       sty     cursor_flag     ; Set new value
+       sty cursor_flag         ; Set new value
        tya
-       beq     L1
-       lda     curHeight       ; prepare cursor
-       jsr     InitTextPrompt
-       jsr     update_cursor   ; place it on screen
+       beq L1
+       lda curHeight           ; prepare cursor
+       jsr InitTextPrompt
+       jsr update_cursor       ; place it on screen
 L1:    pla
        rts
index 08d93870e1f0c4510879429b60a6948daa62d0c9..70475cef553e82320295e758566f53be46e0dd36 100644 (file)
@@ -6,41 +6,41 @@
 ; void cvlinexy (unsigned char x, unsigned char y, unsigned char length);
 ; void cvline (unsigned char length);
 
+           .export _cvlinexy, _cvline
+           .import popa, _gotoxy, fixcursor
+           .importzp cursor_x, cursor_y, cursor_r
+
            .include "jumptab.inc"
            .include "geossym.inc"
 
-           .export             _cvlinexy, _cvline
-           .import             popa, _gotoxy, fixcursor
-           .importzp           cursor_x, cursor_y, cursor_r
-
 _cvlinexy:
-               pha                     ; Save the length
-       jsr     popa            ; Get y
-               jsr     _gotoxy         ; Call this one, will pop params
+       pha                     ; Save the length
+       jsr popa                ; Get y
+       jsr _gotoxy             ; Call this one, will pop params
        pla                     ; Restore the length
 
-_cvline:
-       cmp     #0              ; Is the length zero?
-       beq     L9              ; Jump if done
+_cvline:    
+       cmp #0                  ; Is the length zero?
+       beq L9                  ; Jump if done
        tax
-       lda     cursor_x        ; x position
+       lda cursor_x            ; x position
        clc
-       adc     #4              ; in the middle of cell
-       sta     r4L
-       lda     cursor_x+1
-       adc     #0
-       sta     r4L+1
-       lda     cursor_y        ; top start
-       sta     r3L
+       adc #4                  ; in the middle of cell
+       sta r4L
+       lda cursor_x+1
+       adc #0
+       sta r4L+1
+       lda cursor_y            ; top start
+       sta r3L
        txa                     ; bottom end
        clc
-       adc     cursor_r
-       sta     cursor_r
-       sta     r3H
-       asl     r3H
-       asl     r3H
-       asl     r3H
-       lda     #%11111111      ; pattern
-       jsr     VerticalLine
-       jsr     fixcursor
+       adc cursor_r
+       sta cursor_r
+       sta r3H
+       asl r3H
+       asl r3H
+       asl r3H
+       lda #%11111111          ; pattern
+       jsr VerticalLine
+       jsr fixcursor
 L9:    rts
index 6f0a5058adc0e92cbe72f6f66b278448c7aa1b8e..5857574739669649719c8e81e5fae59debef7c8d 100644 (file)
@@ -1,4 +1,3 @@
-
 ;
 ; Maciej 'YTM/Elysium' Witkowiak
 ;
 
            .include "jumptab.inc"
 
-_gotox:            sta cursor_c
-           jmp fixcursor
+_gotox:
+       sta cursor_c
+       jmp fixcursor
 
-_gotoy:            sta cursor_r
-           inc cursor_r
-           jmp fixcursor
+_gotoy:
+       sta cursor_r
+       inc cursor_r
+       jmp fixcursor
 
-_gotoxy:    sta cursor_r
-           inc cursor_r
-           jsr popa
-           sta cursor_c
+_gotoxy:
+       sta cursor_r
+       inc cursor_r
+       jsr popa
+       sta cursor_c
 
 ; convert 8x8 x/y coordinates to GEOS hires
 fixcursor:
-           lda cursor_c
-           sta cursor_x
-           lda #0
-           sta cursor_x+1
-           lda cursor_r
-           sta cursor_y
-           ldx #cursor_x
-           ldy #3
-           jsr DShiftLeft
-           asl cursor_y
-           asl cursor_y
-           asl cursor_y
-           rts
+       lda cursor_c
+       sta cursor_x
+       lda #0
+       sta cursor_x+1
+       lda cursor_r
+       sta cursor_y
+       ldx #cursor_x
+       ldy #3
+       jsr DShiftLeft
+       asl cursor_y
+       asl cursor_y
+       asl cursor_y
+       rts
index 8f938fd27b4170b6b53a99b8d90563041c577cf2..d5b826ecc28a6c97d6417cef887c40f94bf28c50 100644 (file)
@@ -1,4 +1,3 @@
-
 ;
 ; Maciej 'YTM/Elysium' Witkowiak
 ;
 
            .include "geossym.inc"
 
-.proc   _kbhit
-
-        ldx     #0              ; High byte of result
-        lda     pressFlag
-        rol                     ; Bit 7 is new key flag
-        txa                     ; A = 0
-        rol
-        rts
-
-.endproc
+_kbhit:
+       ldx #0                  ; High byte of result
+       lda pressFlag
+       rol                     ; Bit 7 is new key flag
+       txa                     ; A = 0
+       rol
+       rts
index 32046006e54e9121f33abf5d4b149432aeacb7bd..320ed6a9db02f938b74b7058d9973de145966196 100644 (file)
@@ -1,4 +1,3 @@
-
 ;
 ; Maciej 'YTM/Elysium' Witkowiak
 ;
            .include "const.inc"
 
 _revers:
-           tax
-           bne L0                      ; turn on
-           lda #0
-           .byte $2c
-L0:        lda #SET_REVERSE
-           sta tmp1
+       tax
+       bne L0                  ; turn on
+       lda #0
+       .byte $2c
+L0:    lda #SET_REVERSE
+       sta tmp1
 
-           lda currentMode
-           tax
-           and #SET_REVERSE
-           tay                         ; store old value
-           txa
-           and #%11011111              ; mask out
-           ora tmp1                    ; set new value
-           sta currentMode
+       lda currentMode
+       tax
+       and #SET_REVERSE
+       tay                     ; store old value
+       txa
+       and #%11011111          ; mask out
+       ora tmp1                ; set new value
+       sta currentMode
 
-           ldx #0
-           tya
-           beq L1
-           lda #1
-L1:        rts
+       ldx #0
+       tya
+       beq L1
+       lda #1
+L1:    rts
index 5690fa6d243abd0a7130b8c8b532ddd89c48e1b7..488b72de0d2ca62e771069eef1f844fea9071056 100644 (file)
@@ -1,4 +1,3 @@
-
 ;
 ; Maciej 'YTM/Elysium' Witkowiak
 ;
            .export _wherex, _wherey
            .importzp cursor_c, cursor_r
 
-_wherex:    lda cursor_c
-           ldx #0
-           rts
+_wherex:
+       lda cursor_c
+       ldx #0
+       rts
 
-_wherey:    lda cursor_r
-           ldx #0
-           rts
+_wherey:
+       lda cursor_r
+       ldx #0
+       rts