repo_id
stringlengths
5
115
size
int64
590
5.01M
file_path
stringlengths
4
212
content
stringlengths
590
5.01M
alpine9000/amiga_examples
13,561
028.bs/player.s
include "includes.i" xdef ResetPlayer xdef GetNextAutoMove xdef CheckPlayerMiss xdef UpdatePlayer xdef ProcessJoystick xdef InitialisePlayer xdef HidePlayer xdef SetupSpriteData xdef ScrollSprites xdef RenderPlayerScore xdef PreRenderColumnsRemaining xdef UpdatePlayerFallingAnimation xdef InstallPlayerCo...
alpine9000/amiga_examples
5,026
028.bs/highscore.s
include "includes.i" xdef AddHighScore xdef ShowHighScore SPLASH_COLOR_DEPTH equ 5 SPLASH_SCREEN_WIDTH_BYTES equ 40 PLAY_COPPER_WORD equ $aad1 MENU_TITLE_TOP_COLOR equ $7ef MENU_TITLE_BOTTOM_COLOR equ $5cd MENU_SELECTED_TOP_COLOR equ $4d2 MENU_SELECTED_BOTTOM_COLOR equ $3e1 MENU_TEXT_COLOR equ $7ef MENU...
alpine9000/amiga_examples
5,529
028.bs/bob.s
include "includes.i" include "bob.i" xdef AddBobCloud xdef AddBobBaloon xdef RenderBob xdef ResetBobs xdef ClearBobs xdef RestoreBobBackgrounds xdef bobBufferOffset xdef EnableBobs bob: CLOUD_BOB 0 endBob: CLOUD_BOB 1 CLOUD_BOB 2 baloonBob: BALOON_BOB 3 dc.l 0 AddBobBaloon: lea baloonBob,a5 cmp....
alpine9000/amiga_examples
3,710
028.bs/credits.s
include "includes.i" xdef Credits CREDITS_COLOR_DEPTH equ 4 FillColor: ;; kills a0,d2,d3,d5,d5 ;; a0 - bitplane ;; d0 - color# ;; d1 - height ;; d2 - ypos movem.l d2-d5/a0,-(sp) mulu.w #BITPLANE_WIDTH_BYTES*CREDITS_COLOR_DEPTH,d2 add.l d2,a0 move.b #0,d3 ; bitplane # .loop: move.w d1,d4 btst d3,d0 ...
alpine9000/amiga_examples
4,021
028.bs/pickups.s
include "includes.i" xdef InitialisePickups xdef UsePickup xdef PickupEye xdef PickupClock xdef PickupArrow xdef FlashPickup xdef ResetPickups PICKUP_OFFSET equ (SCREEN_WIDTH_BYTES*PANEL_BIT_DEPTH*17)+(272/8) PICKUP_NUM_FLASHES equ 6 PICKUP_DEBOUNCE_FRAMES equ 10 PICKUP_SAFE_TILE1 equ $f02 PICKUP_...
alpine9000/amiga_examples
1,256
028.bs/message.s
include "includes.i" xdef Message xdef InitialiseMessagePanel xdef ShowMessagePanel xdef HideMessagePanel xdef SavePanel xdef RestorePanel SavePanel: movem.l d0-a6,-(sp) move.w #(32*4)<<6|(8),d0 lea mpanel,a0 move.l #splash+BOB_TOTAL_SAVE,a2 add.l #(40*4*8),a0 jsr SimpleBlit WaitBlitter move.w #1,...
alpine9000/amiga_examples
7,487
028.bs/alpine_bootblock.s
*** hardware trackloader bootblock *** original BootLoader.S by Photon ;NOTE: PC-relative code is PREFERRED. *** see http://coppershade.org/asmskool/SOURCES/Photon-snippets/DDE5-BootLoader.S *** this version hacked by alpine9000 include "../include/registers.i" LoaderVars equ $100 ;Useful variables, see CPUinfo: L...
alpine9000/amiga_examples
24,708
028.bs/game1.s
include "includes.i" xdef StartGame if TRACKLOADER=0 xdef QuitGame endif xdef LevelComplete xdef BigBang xdef InstallTilePalette xdef RevealPathway xdef FreezeScrolling xdef PostCheckPlayerMiss xdef pathwayRenderPending xdef pathwayPlayerTileAddress xdef pathwayLastSafeTileAddress xdef pathwayF...
alpine9000/amiga_examples
3,302
028.bs/background.s
include "includes.i" xdef InitialiseBackground xdef RenderNextBackgroundFrame xdef backgroundScrollX xdef backgroundOnscreen xdef backgroundOffscreen xdef backgroundTilemap InitialiseBackground: move.l #0,backgroundScrollX move.l backgroundOffscreen,a0 move.l #0,d0 move.l #256+10,d1 move.l #0,d2 jsr Bli...
alpine9000/amiga_examples
5,086
028.bs/blitmtext.s
include "includes.i" xdef DrawMaskedText8 xdef DrawWSMaskedText8 BLIT_LF_MINTERM equ $ca ; cookie cut BLIT_WIDTH_WORDS equ 2 ; blit 2 words to allow shifting BLIT_WIDTH_BYTES equ 4 FONT_HEIGHT equ 8 FONT_WIDTH equ 8 FONTMAP_WIDTH_BYTES equ 32 _SCREEN_BIT_DEPTH equ 4 _BITPLANE_WIDTH_BYTES equ 320/8 DrawMaske...
alpine9000/amiga_examples
1,259
011.ehb_mode/init.s
;; custom chip base globally in a6 init: movem.l d0-a6,-(sp) move #$7ff,DMACON(a6) ; disable all dma move #$7fff,INTENA(a6) ; disable all interrupts ;; set up default palette bsr installColorPalette ;; set up playfield move.w #(RASTER_Y_START<<8)|RASTER_X_START,DIWSTRT(a6) move.w #((RASTER_Y_STOP-256)<<8)...
alpine9000/amiga_examples
1,051
025.scroll_text/init.s
include "includes.i" xdef Init ;; custom chip base globally in a6 Init: movem.l d0-a6,-(sp) ;; move #$7ff,DMACON(a6) ; disable all dma ;; move #$7fff,INTENA(a6) ; disable all interrupts ;; lea Level3InterruptHandler,a3 ;; move.l a3,LVL3_INT_VECTOR ;; set up playfield move.w #(RASTER_Y_START<<8)|RA...
alpine9000/amiga_examples
8,179
025.scroll_text/scroll_text.s
include "includes.i" xdef copperList xdef onscreen xdef offscreen xdef copperListBplPtr Y_POS equ 8 NUM_LINES equ 27 byteMap: dc.l Entry dc.l endCode-byteMap Entry: lea userstack,a7 lea CUSTOM,a6 move #$7ff,DMACON(a6) ; disable all dma move #$7fff,INTENA(a6) ; disable all interrupts jsr Install...
alpine9000/amiga_examples
2,771
025.scroll_text/blitchar.s
include "includes.i" xdef BlitChar8 DESCENDING equ 1 BLIT_LF_MINTERM equ $ca ; cookie cut BLIT_WIDTH_WORDS equ 1 ; blit 2 words to allow shifting BLIT_WIDTH_BYTES equ BLIT_WIDTH_WORDS*2 FONTMAP_WIDTH_BYTES equ 32 if MASKED_FONT==1 BLTCON0_VALUE equ BC0F_SRCA|BC0F_SRCB|BC0F_SRCC|BC0F_DEST|BLIT_LF_MINTERM els...
alpine9000/amiga_examples
2,665
025.scroll_text/blit.s
include "includes.i" xdef BlitFillColor xdef BlitScroll ;; A(mask) B(bob) C(bg) D(dest) ;; - - - - ;; 0 0 0 0 ;; 0 0 1 1 ;; 0 1 0 0 ;; 0 1 1 1 ;; 1 0 0 0 ;;...
alpine9000/amiga_examples
9,535
025.scroll_text/copperlist.s
dc.w $2c07,$fffe dc.w COLOR01,$7dd dc.w $2d07,$fffe dc.w COLOR01,$9ec dc.w $2e07,$fffe dc.w COLOR01,$beb dc.w $2f07,$fffe dc.w COLOR01,$ce9 dc.w $3007,$fffe dc.w COLOR01,$ed7 dc.w $3107,$fffe dc.w COLOR01,$eb5 dc.w $3207,$fffe dc.w COLOR01,$e93 dc.w $3307,$fffe dc.w COLOR01,$d71 dc.w $3407,$fffe dc.w ...
alpine9000/amiga_examples
7,487
025.scroll_text/alpine_bootblock.s
*** hardware trackloader bootblock *** original BootLoader.S by Photon ;NOTE: PC-relative code is PREFERRED. *** see http://coppershade.org/asmskool/SOURCES/Photon-snippets/DDE5-BootLoader.S *** this version hacked by alpine9000 include "../include/registers.i" LoaderVars equ $100 ;Useful variables, see CPUinfo: L...
alpine9000/amiga_examples
1,254
009.anim_blit/init.s
;; custom chip base globally in a6 init: movem.l d0-a6,-(sp) move #$7ff,DMACON(a6) ; disable all dma move #$7fff,INTENA(a6) ; disable all interrupts ;; set up default palette bsr installPalette ;; set up playfield move.w #(RASTER_Y_START<<8)|RASTER_X_START,DIWSTRT(a6) move.w #((RASTER_Y_STOP-256)<<8)|(RAS...
alpine9000/amiga_examples
1,330
009.anim_blit/anim_blit.s
include "../include/registers.i" include "hardware/dmabits.i" include "hardware/intbits.i" include "constants.i" entry: lea CUSTOM,a6 bsr init lea bitplanes(pc),a0 lea emoji,a1 lea emojiMask,a2 .mainLoop: bsr waitvbl bsr moveBlitterObject bra.s .mainLoop include "blit.s" include "init.s" include ...
alpine9000/amiga_examples
2,775
009.anim_blit/blit.s
;; BLTCON? configuration ;; http://amigadev.elowar.com/read/ADCD_2.1/Hardware_Manual_guide/node011C.html ;; blitter logic function minterm truth table ;; fill in D column for desired function ;; A(mask) B(bob) C(bg) D(dest) ;; - - - - ;; 0 0 0 0 ;; 0 ...
alpine9000/amiga_examples
1,592
022.photons_bootloader/init.s
include "includes.i" xref Init ;; custom chip base globally in a6 Init: movem.l d0-a6,-(sp) move #$7ff,DMACON(a6) ; disable all dma move #$7fff,INTENA(a6) ; disable all interrupts ;; set up default palette jsr InstallColorPalette if INTERLACE==1 ;; poke the bitplane pointers for the two copper lists. ...
alpine9000/amiga_examples
1,579
022.photons_bootloader/photons_bootloader.s
include "includes.i" xref InstallColorPalette xref PokeBitplanePointers xref copperList xref copperListAlternate Entry: lea CUSTOM,a6 jsr Init .mainLoop: jsr WaitVerticalBlank if INTERLACE==1 btst #VPOSRLOFBIT,VPOSR(a6) beq.s .lof lea copperListAlternate(pc),a0 move.l a0,COP1LC(a6) bra .done .l...
alpine9000/amiga_examples
4,178
006.simple_blit/blit.s
include "../include/registers.i" include "hardware/dmabits.i" include "hardware/intbits.i" LVL3_INT_VECTOR equ $6c SCREEN_WIDTH equ 320 SCREEN_HEIGHT equ 256 SCREEN_WIDTH_BYTES equ (SCREEN_WIDTH/8) SCREEN_BIT_DEPTH equ 5 SCREEN_RES equ 8 ; 8=lo resolution, 4=hi resolution RASTER_X_START equ $81 ; hard coded ...
alpine9000/amiga_examples
1,051
024.simple_text/init.s
include "includes.i" xdef Init ;; custom chip base globally in a6 Init: movem.l d0-a6,-(sp) ;; move #$7ff,DMACON(a6) ; disable all dma ;; move #$7fff,INTENA(a6) ; disable all interrupts ;; lea Level3InterruptHandler,a3 ;; move.l a3,LVL3_INT_VECTOR ;; set up playfield move.w #(RASTER_Y_START<<8)|RA...
alpine9000/amiga_examples
4,108
024.simple_text/blittext.s
include "includes.i" xdef DrawText8 BLIT_LF_MINTERM equ $ca ; cookie cut BLIT_WIDTH_WORDS equ 2 ; blit 2 words to allow shifting BLIT_WIDTH_BYTES equ 4 FONTMAP_WIDTH_BYTES equ 32 DrawText8: ;; a0 - bitplane ;; a1 - text ;; d0 - xpos ;; d1 - ypos movem.l d0-d7/a0-a4,-(sp) WaitBlitter ;; blitter config th...
alpine9000/amiga_examples
2,780
024.simple_text/simple_text.s
include "includes.i" xdef copperList xdef onscreen xdef offscreen xdef copperListBplPtr byteMap: dc.l Entry dc.l endCode-byteMap Entry: lea userstack,a7 lea CUSTOM,a6 move #$7ff,DMACON(a6) ; disable all dma move #$7fff,INTENA(a6) ; disable all interrupts jsr InstallPalette lea Level3InterruptH...
alpine9000/amiga_examples
7,487
024.simple_text/alpine_bootblock.s
*** hardware trackloader bootblock *** original BootLoader.S by Photon ;NOTE: PC-relative code is PREFERRED. *** see http://coppershade.org/asmskool/SOURCES/Photon-snippets/DDE5-BootLoader.S *** this version hacked by alpine9000 include "../include/registers.i" LoaderVars equ $100 ;Useful variables, see CPUinfo: L...
alpine9000/amiga_examples
3,169
000.trackdisk/main.s
include "../include/registers.i" include "hardware/dmabits.i" include "hardware/intbits.i" LEVEL_3_INTERRUPT_VECTOR equ $6c entry: lea level3InterruptHandler(pc),a3 move.l a3,LEVEL_3_INTERRUPT_VECTOR lea CUSTOM,a1 lea copper1(pc),a0 move.l a0,COP1LC(a1) move.w COPJMP1(a1),d0 move.w #(DMAF_SETCLR!DMAF...
alpine9000/amiga_examples
4,548
002.sprite_display/sprite.s
include ../include/registers.i include hardware/dmabits.i include hardware/intbits.i LVL3_INT_VECTOR equ $6c entry: lea level3InterruptHandler(pc),a3 move.l a3,LVL3_INT_VECTOR ;; ;; sprite_display.asm ;; ;; This example displays the spaceship sprite at location V = 65, ;; H = 128. Remember to include...
alpine9000/amiga_examples
15,317
026.tile_hscroll/main-indexes.s
dc.w 63 dc.w 63 dc.w 32 dc.w 48 dc.w 64 dc.w 80 dc.w 96 dc.w 112 dc.w 128 dc.w 144 dc.w 160 dc.w 176 dc.w 192 dc.w 208 dc.w 224 dc.w 240 dc.w 63 dc.w 63 dc.w 33 dc.w 49 dc.w 65 dc.w 81 dc.w 97 dc.w 113 dc.w 129 dc.w 145 dc.w 161 dc.w 177 dc.w 193 dc.w 209 dc.w 225 dc.w 241 dc.w 63 dc.w...
alpine9000/amiga_examples
1,117
026.tile_hscroll/init.s
include "includes.i" xdef Init ;; custom chip base globally in a6 Init: movem.l d0-a6,-(sp) ;; move #$7ff,DMACON(a6) ; disable all dma ;; move #$7fff,INTENA(a6) ; disable all interrupts ;; lea Level3InterruptHandler,a3 ;; move.l a3,LVL3_INT_VECTOR ;; set up playfield move.w #(RASTER_Y_START<<8)|RA...
alpine9000/amiga_examples
2,771
026.tile_hscroll/blitchar.s
include "includes.i" xdef BlitChar8 DESCENDING equ 1 BLIT_LF_MINTERM equ $ca ; cookie cut BLIT_WIDTH_WORDS equ 1 ; blit 2 words to allow shifting BLIT_WIDTH_BYTES equ BLIT_WIDTH_WORDS*2 FONTMAP_WIDTH_BYTES equ 32 if MASKED_FONT==1 BLTCON0_VALUE equ BC0F_SRCA|BC0F_SRCB|BC0F_SRCC|BC0F_DEST|BLIT_LF_MINTERM els...
alpine9000/amiga_examples
3,281
026.tile_hscroll/blit.s
include "includes.i" xdef BlitFillColor xdef BlitScroll xdef BlitTile ;; A(mask) B(bob) C(bg) D(dest) ;; - - - - ;; 0 0 0 0 ;; 0 0 1 1 ;; 0 1 0 0 ;; 0 1 1 1 ;; 1 0 ...
alpine9000/amiga_examples
9,535
026.tile_hscroll/copperlist.s
dc.w $2c07,$fffe dc.w COLOR01,$7dd dc.w $2d07,$fffe dc.w COLOR01,$9ec dc.w $2e07,$fffe dc.w COLOR01,$beb dc.w $2f07,$fffe dc.w COLOR01,$ce9 dc.w $3007,$fffe dc.w COLOR01,$ed7 dc.w $3107,$fffe dc.w COLOR01,$eb5 dc.w $3207,$fffe dc.w COLOR01,$e93 dc.w $3307,$fffe dc.w COLOR01,$d71 dc.w $3407,$fffe dc.w ...
alpine9000/amiga_examples
2,312
026.tile_hscroll/tile_hscroll.s
include "includes.i" xdef copperList xdef onscreen xdef offscreen xdef copperListBplPtr byteMap: dc.l Entry dc.l endCode-byteMap Entry: lea userstack,a7 lea CUSTOM,a6 move #$7ff,DMACON(a6) ; disable all dma move #$7fff,INTENA(a6) ; disable all interrupts jsr InstallPalette lea Level3InterruptH...
alpine9000/amiga_examples
7,487
026.tile_hscroll/alpine_bootblock.s
*** hardware trackloader bootblock *** original BootLoader.S by Photon ;NOTE: PC-relative code is PREFERRED. *** see http://coppershade.org/asmskool/SOURCES/Photon-snippets/DDE5-BootLoader.S *** this version hacked by alpine9000 include "../include/registers.i" LoaderVars equ $100 ;Useful variables, see CPUinfo: L...
alpine9000/amiga_examples
1,830
003.music/music.s
include "../include/registers.i" include "hardware/dmabits.i" include "hardware/intbits.i" LVL3_INT_VECTOR equ $6c SCREEN_WIDTH_BYTES equ (320/8) SCREEN_BIT_DEPTH equ 5 include "P6112-Options.i" entry: lea level3InterruptHandler(pc),a3 move.l a3,LVL3_INT_VECTOR ;; initialise P61 lea Module1(pc),a0 su...
alpine9000/amiga_examples
1,171
019.hori_scroll/init.s
include "../include/bplconbits.i" ;; custom chip base globally in a6 Init: movem.l d0-a6,-(sp) move #$7ff,DMACON(a6) ; disable all dma move #$7fff,INTENA(a6) ; disable all interrupts ;; set up default palette bsr InstallColorPalette moveq.l #0,d0 lea copper(pc),a0 bsr PokeBitplanePointers ;; set up pl...
alpine9000/amiga_examples
2,869
019.hori_scroll/hori_scroll.s
include "../include/registers.i" include "hardware/dmabits.i" include "hardware/intbits.i" include "constants.i" Entry: lea CUSTOM,a6 bsr Init .mainLoop: bsr WaitVerticalBlank move.l #0,bitplaneAddress bsr HoriScrollPlayfield bsr VertScrollPlayfield lea copper(pc),a0 move.l bitplaneAddress,d0 bs...
alpine9000/amiga_examples
1,537
010.blit_speed/blit_speed.s
include "../include/registers.i" include "hardware/dmabits.i" include "hardware/intbits.i" include "constants.i" entry: lea CUSTOM,a6 bsr init bsr installColorPalette lea bitplanes(pc),a0 lea emoji,a1 lea emojiMask,a2 .mainLoop: bsr waitVerticalBlank bsr installGreyscalePalette move.l #4,d0 .bl...
alpine9000/amiga_examples
1,259
010.blit_speed/init.s
;; custom chip base globally in a6 init: movem.l d0-a6,-(sp) move #$7ff,DMACON(a6) ; disable all dma move #$7fff,INTENA(a6) ; disable all interrupts ;; set up default palette bsr installColorPalette ;; set up playfield move.w #(RASTER_Y_START<<8)|RASTER_X_START,DIWSTRT(a6) move.w #((RASTER_Y_STOP-256)<<8)...
alpine9000/amiga_examples
4,581
010.blit_speed/blit.s
;; BLTCON? configuration ;; http://amigadev.elowar.com/read/ADCD_2.1/Hardware_Manual_guide/node011C.html ;; blitter logic function minterm truth table ;; fill in D column for desired function ;; A(mask) B(bob) C(bg) D(dest) ;; - - - - ;; 0 0 0 0 ;; 0 ...
alpine9000/amiga_examples
1,304
013.dithered_ham/init.s
include "../include/bplconbits.i" ;; custom chip base globally in a6 init: movem.l d0-a6,-(sp) move #$7ff,DMACON(a6) ; disable all dma move #$7fff,INTENA(a6) ; disable all interrupts ;; set up default palette bsr installColorPalette ;; set up playfield move.w #(RASTER_Y_START<<8)|RASTER_X_START,DIWSTRT(a6...
alpine9000/amiga_examples
1,592
020.shrinkler/init.s
include "includes.i" xref Init ;; custom chip base globally in a6 Init: movem.l d0-a6,-(sp) move #$7ff,DMACON(a6) ; disable all dma move #$7fff,INTENA(a6) ; disable all interrupts ;; set up default palette jsr InstallColorPalette if INTERLACE==1 ;; poke the bitplane pointers for the two copper lists. ...
alpine9000/amiga_examples
1,605
020.shrinkler/shrinkler.s
include "includes.i" xref InstallColorPalette xref PokeBitplanePointers xref copperList xref copperListAlternate Entry: lea CUSTOM,a6 jsr Init .mainLoop: jsr WaitVerticalBlank if INTERLACE==1 btst.w #VPOSRLOFBIT,VPOSR(a6) beq.s .lof lea copperListAlternate(pc),a0 move.l a0,COP1LC(a6) bra .done ...
alpine9000/amiga_examples
1,830
016.copper_fun/copper_fun.s
include "../include/registers.i" include "hardware/dmabits.i" include "hardware/intbits.i" LVL3_INT_VECTOR equ $6c SCREEN_WIDTH equ 320 SCREEN_HEIGHT equ 256 SCREEN_WIDTH_BYTES equ (SCREEN_WIDTH/8) SCREEN_BIT_DEPTH equ 1 SCREEN_RES equ 8 ; 8=lo resolution, 4=hi resolution RASTER_X_START equ $81 ; hard coded ...
alpine9000/amiga_examples
1,399
017.dual_playfield/init.s
include "../include/bplconbits.i" ;; custom chip base globally in a6 init: movem.l d0-a6,-(sp) move #$7ff,DMACON(a6) ; disable all dma move #$7fff,INTENA(a6) ; disable all interrupts ;; set up default palette bsr installColorPalette ;; poke playfield 1 bitplane pointers lea pf1_bitplanepointers(pc),a0 lea...
alpine9000/amiga_examples
1,435
017.dual_playfield/dual_playfield_mode.s
include "../include/registers.i" include "hardware/dmabits.i" include "hardware/intbits.i" include "constants.i" entry: lea CUSTOM,a6 bsr init .mainLoop: bsr waitVerticalBlank bra .mainLoop include "init.s" include "utils.s" pokeBitplanePointers: ;; a0 = BPLP copper list address ;; a1 = address o...
alpine9000/amiga_examples
4,014
023.slideshow/trackloader.s
*** MFMLoader.S by Photon *** ;requires a6=$dff002 xdef LoadMFMB MFMsync equ $4489 ;AmigaDOS standard sync marker. MFMlen equ 12980 ;Legacy trackdata read length in bytes ShortWt:MACRO ;CPU-independent nop;nop replacement tst.w (a6) ENDM MFMcyl: dc.w 0 MFMhead: dc.w 0 MFMdrv: dc.w 0 MFMchk: dc.l 0 ...
alpine9000/amiga_examples
1,368
023.slideshow/init.s
include "includes.i" xdef Init ;; custom chip base globally in a6 Init: movem.l d0-a6,-(sp) ;; move #$7ff,DMACON(a6) ; disable all dma ;; move #$7fff,INTENA(a6) ; disable all interrupts ;; lea Level3InterruptHandler,a3 ;; move.l a3,LVL3_INT_VECTOR ;; set up playfield move.w #(RASTER_Y_START<<8)|RA...
alpine9000/amiga_examples
3,130
023.slideshow/data.s
include "includes.i" xdef imageLookupTable xdef compressedModule xdef endCompressedModule InstallColorPalette: include "out/image1-palette.s" rts InstallColorPalette2: include "out/image2-palette.s" rts InstallColorPalette3: include "out/image3-palette.s" rts InstallColorPalette4: include "out/image4-pa...
alpine9000/amiga_examples
3,323
023.slideshow/slideshow.s
include "includes.i" include "P6112-Options.i" xdef PokeBitplanePointers xdef copperList xdef copperListAlternate xdef bitplanes1 xdef bitplanes2 xdef bitplanes3 xdef Module xdef copperListBplPtr xdef copperListAlternateBplPtr byteMap: dc.l Entry dc.l endCode-byteMap Entry: lea userstack,a7 lea...
alpine9000/amiga_examples
1,656
023.slideshow/image.s
include "includes.i" xdef LoadNextImage xdef SetupImage LoadNextImage: movem.l d0-a6,-(sp) lea imageLookupTable,a1 add.l imageIndex,a1 cmp.l #0,(a1) ; lookup table is terminated with 0 bne .showImage move.l #0,imageIndex lea imageLookupTable,a1 .showImage move.l a1,a3 move.l (a1),a2 ; address of I...
alpine9000/amiga_examples
7,487
023.slideshow/alpine_bootblock.s
*** hardware trackloader bootblock *** original BootLoader.S by Photon ;NOTE: PC-relative code is PREFERRED. *** see http://coppershade.org/asmskool/SOURCES/Photon-snippets/DDE5-BootLoader.S *** this version hacked by alpine9000 include "../include/registers.i" LoaderVars equ $100 ;Useful variables, see CPUinfo: L...
alpine9000/amiga_examples
1,526
014.lace_mode/init.s
include "../include/bplconbits.i" ;; custom chip base globally in a6 init: movem.l d0-a6,-(sp) move #$7ff,DMACON(a6) ; disable all dma move #$7fff,INTENA(a6) ; disable all interrupts ;; set up default palette bsr installColorPalette if INTERLACE==1 ;; poke the bitplane pointers for the two copper lists. mo...
alpine9000/amiga_examples
1,480
014.lace_mode/lace_mode.s
include "../include/registers.i" include "hardware/dmabits.i" include "hardware/intbits.i" include "constants.i" entry: lea CUSTOM,a6 bsr init .mainLoop: bsr waitVerticalBlank if INTERLACE==1 btst #VPOSRLOFBIT,VPOSR(a6) beq.s .lof lea copper(pc),a0 move.l a0,COP1LC(a6) bra .done .lof: lea copper...
alpine9000/amiga_examples
1,304
012.ham_mode/init.s
include "../include/bplconbits.i" ;; custom chip base globally in a6 init: movem.l d0-a6,-(sp) move #$7ff,DMACON(a6) ; disable all dma move #$7fff,INTENA(a6) ; disable all interrupts ;; set up default palette bsr installColorPalette ;; set up playfield move.w #(RASTER_Y_START<<8)|RASTER_X_START,DIWSTRT(a6...
alpine9000/amiga_examples
1,251
015.sliced_ham/init.s
include "../include/bplconbits.i" ;; custom chip base globally in a6 init: movem.l d0-a6,-(sp) move #$7ff,DMACON(a6) ; disable all dma move #$7fff,INTENA(a6) ; disable all interrupts ;; set up playfield move.w #(RASTER_Y_START<<8)|RASTER_X_START,DIWSTRT(a6) move.w #((RASTER_Y_STOP-256)<<8)|(RASTER_X_STOP-25...
alpine9000/amiga_examples
1,841
004.copper_bars/copper.s
include "../include/registers.i" include "hardware/dmabits.i" include "hardware/intbits.i" LVL3_INT_VECTOR equ $6c SCREEN_WIDTH equ 320 SCREEN_HEIGHT equ 256 SCREEN_WIDTH_BYTES equ (SCREEN_WIDTH/8) SCREEN_BIT_DEPTH equ 1 SCREEN_RES equ 8 ; 8=lo resolution, 4=hi resolution RASTER_X_START equ $81 ; hard coded ...
alpine9000/amiga_examples
4,513
007.masked_blit/masked_blit.s
include "../include/registers.i" include "hardware/dmabits.i" include "hardware/intbits.i" LVL3_INT_VECTOR equ $6c SCREEN_WIDTH equ 320 SCREEN_HEIGHT equ 256 SCREEN_WIDTH_BYTES equ (SCREEN_WIDTH/8) SCREEN_BIT_DEPTH equ 5 SCREEN_RES equ 8 ; 8=lo resolution, 4=hi resolution RASTER_X_START equ $81 ; hard coded ...
alpine9000/amiga_examples
1,085
018.vert_scroll/init.s
include "../include/bplconbits.i" ;; custom chip base globally in a6 init: movem.l d0-a6,-(sp) move #$7ff,DMACON(a6) ; disable all dma move #$7fff,INTENA(a6) ; disable all interrupts ;; set up default palette bsr installColorPalette moveq.l #0,d0 lea copper(pc),a0 bsr pokeBitplanePointers ;; set up pl...
alpine9000/amiga_examples
1,580
018.vert_scroll/vert_scroll.s
include "../include/registers.i" include "hardware/dmabits.i" include "hardware/intbits.i" include "constants.i" entry: lea CUSTOM,a6 bsr init .mainLoop: bsr waitVerticalBlank bsr scrollPlayfield bra .mainLoop scrollPlayfield: movem.l d0-a6,-(sp) move.l vpos,d0 lea copper(pc),a0 bsr pokeBitplan...
alpine9000/amiga_examples
1,605
shared/shrinkler_bootblock.s
include "../include/registers.i" bootblock: dc.b "DOS",0 dc.l 0 dc.l 880 BootEntry: ;; a6 = exec base ;; a1 = trackdisk.device I/O request pointer if SHRINKLER==1 lea DECOMPRESS_ADDRESS,a5 ; load shrinkler compressed data here else lea BASE_ADDRESS,a5 ; main.s entry point endif ;; Lo...
alpine9000/amiga_examples
8,021
shared/hardware_bootblock.s
*** hardware trackloader bootblock *** original BootLoader.S by Photon ;NOTE: PC-relative code is PREFERRED. *** see http://coppershade.org/asmskool/SOURCES/Photon-snippets/DDE5-BootLoader.S *** this version hacked by alpine9000 include "../include/registers.i" LoaderVars equ $100 ;Useful variables, see CPUinfo: L...
alpine9000/amiga_examples
1,203
027.parallax/init.s
include "includes.i" xdef Init ;; custom chip base globally in a6 Init: movem.l d0-a6,-(sp) ;; move #$7ff,DMACON(a6) ; disable all dma ;; move #$7fff,INTENA(a6) ; disable all interrupts ;; lea Level3InterruptHandler,a3 ;; move.l a3,LVL3_INT_VECTOR ;; set up playfield move.w #(RASTER_Y_START<<8)|RA...
alpine9000/amiga_examples
2,771
027.parallax/blitchar.s
include "includes.i" xdef BlitChar8 DESCENDING equ 1 BLIT_LF_MINTERM equ $ca ; cookie cut BLIT_WIDTH_WORDS equ 1 ; blit 2 words to allow shifting BLIT_WIDTH_BYTES equ BLIT_WIDTH_WORDS*2 FONTMAP_WIDTH_BYTES equ 32 if MASKED_FONT==1 BLTCON0_VALUE equ BC0F_SRCA|BC0F_SRCB|BC0F_SRCC|BC0F_DEST|BLIT_LF_MINTERM els...
alpine9000/amiga_examples
5,318
027.parallax/parallax.s
include "includes.i" xdef copperList xdef copperListBpl1Ptr xdef copperListBpl2Ptr xdef backgroundOnscreen xdef backgroundOffscreen xdef foregroundOnscreen xdef foregroundOffscreen xdef foregroundX xdef backgroundX byteMap: dc.l Entry dc.l endCode-byteMap Entry: lea userstack,a7 lea CUSTOM,a6 mov...
alpine9000/amiga_examples
14,412
027.parallax/background-indexes.s
dc.w 96 dc.w 36 dc.w 56 dc.w 76 dc.w 96 dc.w 96 dc.w 96 dc.w 35 dc.w 96 dc.w 96 dc.w 96 dc.w 96 dc.w 96 dc.w 96 dc.w 96 dc.w 96 dc.w 96 dc.w 37 dc.w 57 dc.w 77 dc.w 96 dc.w 96 dc.w 96 dc.w 96 dc.w 96 dc.w 96 dc.w 96 dc.w 96 dc.w 96 dc.w 35 dc.w 96 dc.w 96 dc.w 96 dc.w 38 dc.w 58 dc.w...
alpine9000/amiga_examples
3,920
027.parallax/blit.s
include "includes.i" xdef BlitFillColor xdef BlitScroll xdef BlitTile xref BlueFill ;; A(mask) B(bob) C(bg) D(dest) ;; - - - - ;; 0 0 0 0 ;; 0 0 1 1 ;; 0 1 0 0 ;; 0 1 1 1 ;; ...
alpine9000/amiga_examples
9,535
027.parallax/copperlist.s
dc.w $2c07,$fffe dc.w COLOR01,$7dd dc.w $2d07,$fffe dc.w COLOR01,$9ec dc.w $2e07,$fffe dc.w COLOR01,$beb dc.w $2f07,$fffe dc.w COLOR01,$ce9 dc.w $3007,$fffe dc.w COLOR01,$ed7 dc.w $3107,$fffe dc.w COLOR01,$eb5 dc.w $3207,$fffe dc.w COLOR01,$e93 dc.w $3307,$fffe dc.w COLOR01,$d71 dc.w $3407,$fffe dc.w ...
alpine9000/amiga_examples
7,487
027.parallax/alpine_bootblock.s
*** hardware trackloader bootblock *** original BootLoader.S by Photon ;NOTE: PC-relative code is PREFERRED. *** see http://coppershade.org/asmskool/SOURCES/Photon-snippets/DDE5-BootLoader.S *** this version hacked by alpine9000 include "../include/registers.i" LoaderVars equ $100 ;Useful variables, see CPUinfo: L...
alpine9000/amiga_examples
14,844
027.parallax/foreground-indexes.s
dc.w 120 dc.w 120 dc.w 120 dc.w 120 dc.w 120 dc.w 0 dc.w 1 dc.w 0 dc.w 1 dc.w 0 dc.w 1 dc.w 120 dc.w 120 dc.w 120 dc.w 120 dc.w 120 dc.w 120 dc.w 120 dc.w 120 dc.w 120 dc.w 120 dc.w 1 dc.w 0 dc.w 1 dc.w 0 dc.w 1 dc.w 0 dc.w 120 dc.w 120 dc.w 120 dc.w 120 dc.w 120 dc.w 120 dc.w 120 dc....
alpine9000/amiga_examples
4,755
008.shift_blit/shift_blit.s
include "../include/registers.i" include "hardware/dmabits.i" include "hardware/intbits.i" LVL3_INT_VECTOR equ $6c SCREEN_WIDTH equ 320 SCREEN_HEIGHT equ 256 SCREEN_WIDTH_BYTES equ (SCREEN_WIDTH/8) SCREEN_BIT_DEPTH equ 5 SCREEN_RES equ 8 ; 8=lo resolution, 4=hi resolution RASTER_X_START equ $81 ; hard coded ...
alpine9000/amiga_examples
1,501
001.simple_image/image.s
include "../include/registers.i" include "hardware/dmabits.i" include "hardware/intbits.i" LVL3_INT_VECTOR equ $6c SCREEN_WIDTH_BYTES equ (320/8) SCREEN_BIT_DEPTH equ 5 entry: lea level3InterruptHandler(pc),a3 move.l a3,LVL3_INT_VECTOR ;; install copper list and enable DMA lea CUSTOM,a1 lea copper(pc),...
alpine9000/amiga_examples
1,841
021.calling_c/calling_c.s
include "includes.i" xref InstallColorPalette ;; xref PokeBitplanePointers ;; We don't need the ASM version of this for this example xref copperList xref copperListAlternate xref bitplanes Entry: lea CUSTOM,a6 jsr Init .mainLoop: jsr WaitVerticalBlank if INTERLACE==1 btst #VPOSRLOFBIT,VPOSR(a6) be...
alpine9000/amiga_examples
2,594
021.calling_c/init.s
include "includes.i" xref Init ;; custom chip base globally in a6 Init: movem.l d0-a6,-(sp) move #$7ff,DMACON(a6) ; disable all dma move #$7fff,INTENA(a6) ; disable all interrupts ;; set up default palette jsr InstallColorPalette ;; Make a call to a C function with the following prototype: ;; void Poke...
alpine9000/amiga_examples
1,868
005.copper_vert/copper_vert.s
include "../include/registers.i" include "hardware/dmabits.i" include "hardware/intbits.i" LVL3_INT_VECTOR equ $6c SCREEN_WIDTH equ 320 SCREEN_HEIGHT equ 256 SCREEN_WIDTH_BYTES equ (SCREEN_WIDTH/8) SCREEN_BIT_DEPTH equ 1 SCREEN_RES equ 8 ; 8=lo resolution, 4=hi resolution RASTER_X_START equ $81 ; hard coded ...
alpine9000/amiga_examples
3,816
tools/external/shrinkler/Header.S
; Copyright 1999-2015 Aske Simon Christensen. See LICENSE.txt for usage terms. ; auto wb\Header1\Header1_End\ ; auto wb\Header1T\Header1T_End\ ; auto wb\Header2\Header2_End\ INIT_ONE_PROB = $8000 ADJUST_SHIFT = 4 SINGLE_BIT_CONTEXTS = 1 NUM_CONTEXTS = 1536 DUMMY_TEXT_LENGTH = 0 ; Exec LIB_VERSION = 20 Forbid = -...
alpine9000/amiga_examples
3,438
tools/external/shrinkler/OverlapHeader.S
; Copyright 1999-2015 Aske Simon Christensen. See LICENSE.txt for usage terms. TEXT = 0 ; auto wb\OverlapHeader\OverlapHeader_End\ INIT_ONE_PROB = $8000 ADJUST_SHIFT = 4 SINGLE_BIT_CONTEXTS = 1 NUM_CONTEXTS = 1536 DUMMY_TEXT_LENGTH = 0 ; Exec LIB_VERSION = 20 OldOpenLibrary = -408 CloseLibrary = -414 CacheClearU...
alpine9000/amiga_examples
2,331
tools/external/shrinkler/MiniHeader.S
; Copyright 1999-2015 Aske Simon Christensen. See LICENSE.txt for usage terms. ; auto wb\MiniHeader\MiniHeader_End\ INIT_ONE_PROB = $8000 ADJUST_SHIFT = 4 SINGLE_BIT_CONTEXTS = 1 DUMMY_CONTEXT_OFFSET = 0 LIB_VERSION = 20 CacheClearU = -636 align 0,4 MiniHeader: move.l (a3),d2 lsl.l #2,d2 move.l d2,a1 addq.l...
alpine9000/amiga_examples
2,943
tools/external/shrinkler/ShrinklerDecompress.S
; Copyright 1999-2015 Aske Simon Christensen. ; ; The code herein is free to use, in whole or in part, ; modified or as is, for any legal purpose. ; ; No warranties of any kind are given as to its behavior ; or suitability. INIT_ONE_PROB = $8000 ADJUST_SHIFT = 4 SINGLE_BIT_CONTEXTS = 1 NUM_CONTEXTS = 1536 ; Deco...
alpine9000/amiga_examples
1,305
tools/imagecon/reference/use_palette.png-palette.s
movem.l d0-a6,-(sp) lea CUSTOM,a6 lea COLOR00(a6),a0 move.w #$36b,(a0) lea COLOR01(a6),a0 move.w #$48b,(a0) lea COLOR02(a6),a0 move.w #$363,(a0) lea COLOR03(a6),a0 move.w #$ffd,(a0) lea COLOR04(a6),a0 move.w #$111,(a0) lea COLOR05(a6),a0 move.w #$443,(a0) lea COLOR06(a6),a0 move.w #$fec,(a0) lea COLOR0...
alpinelinux/aports
29,006
main/ocaml5/loongarch64.S
/**************************************************************************/ /* */ /* OCaml */ /* */ /* ...
alpinelinux/aports
2,787
main/ocaml5/asmgen_loongarch64.S
/**************************************************************************/ /* */ /* OCaml */ /* */ /* ...
aluvalasuman/OpenSSL1.0.1cForAndroid
3,597
crypto/ia64cpuid.S
// Works on all IA-64 platforms: Linux, HP-UX, Win64i... // On Win64i compile with ias.exe. .text .global OPENSSL_cpuid_setup# .proc OPENSSL_cpuid_setup# OPENSSL_cpuid_setup: { .mib; br.ret.sptk.many b0 };; .endp OPENSSL_cpuid_setup# .global OPENSSL_rdtsc# .proc OPENSSL_rdtsc# OPENSSL_rdtsc: { .mib; mov r8=ar.itc ...
aluvalasuman/OpenSSL1.0.1cForAndroid
2,988
crypto/armv4cpuid.S
#include "arm_arch.h" .text .code 32 .align 5 .global _armv7_neon_probe .type _armv7_neon_probe,%function _armv7_neon_probe: .word 0xf26ee1fe @ vorr q15,q15,q15 .word 0xe12fff1e @ bx lr .size _armv7_neon_probe,.-_armv7_neon_probe .global _armv7_tick .type _armv7_tick,%function _armv7_tick: mrc p15,0,r0,c9,c13,0 ...
aluvalasuman/OpenSSL1.0.1cForAndroid
8,025
crypto/sparccpuid.S
#if defined(__SUNPRO_C) && defined(__sparcv9) # define ABI64 /* They've said -xarch=v9 at command line */ #elif defined(__GNUC__) && defined(__arch64__) # define ABI64 /* They've said -m64 at command line */ #endif #ifdef ABI64 .register %g2,#scratch .register %g3,#scratch # define FRAME -192 # define BIAS 2047 ...
aluvalasuman/OpenSSL1.0.1cForAndroid
1,690
crypto/s390xcpuid.S
.text .globl OPENSSL_s390x_facilities .type OPENSSL_s390x_facilities,@function .align 16 OPENSSL_s390x_facilities: lghi %r0,0 larl %r2,OPENSSL_s390xcap_P stg %r0,8(%r2) .long 0xb2b02000 # stfle 0(%r2) brc 8,.Ldone lghi %r0,1 .long 0xb2b02000 # stfle 0(%r2) .Ldone: lg %r2,0(%r2) br %r14 .size OPENSSL_s390x_fac...
aluvalasuman/OpenSSL1.0.1cForAndroid
11,171
crypto/sha/asm/sha1-armv4-large.S
#include "arm_arch.h" .text .global sha1_block_data_order .type sha1_block_data_order,%function .align 2 sha1_block_data_order: stmdb sp!,{r4-r12,lr} add r2,r1,r2,lsl#6 @ r2 to point at the end of r1 ldmia r0,{r3,r4,r5,r6,r7} .Lloop: ldr r8,.LK_00_19 mov r14,sp sub sp,sp,#15*4 mov r5,r5,ror#30 mov r6,r6,ror#...
aluvalasuman/OpenSSL1.0.1cForAndroid
30,252
crypto/sha/asm/sha256-armv4.S
#include "arm_arch.h" .text .code 32 .type K256,%object .align 5 K256: .word 0x428a2f98,0x71374491,0xb5c0fbcf,0xe9b5dba5 .word 0x3956c25b,0x59f111f1,0x923f82a4,0xab1c5ed5 .word 0xd807aa98,0x12835b01,0x243185be,0x550c7dc3 .word 0x72be5d74,0x80deb1fe,0x9bdc06a7,0xc19bf174 .word 0xe49b69c1,0xefbe4786,0x0fc19dc6,0x240ca1...
aluvalasuman/OpenSSL1.0.1cForAndroid
39,521
crypto/sha/asm/sha512-armv4.S
#include "arm_arch.h" #ifdef __ARMEL__ # define LO 0 # define HI 4 # define WORD64(hi0,lo0,hi1,lo1) .word lo0,hi0, lo1,hi1 #else # define HI 0 # define LO 4 # define WORD64(hi0,lo0,hi1,lo1) .word hi0,lo0, hi1,lo1 #endif .text .code 32 .type K512,%object .align 5 K512: WORD64(0x428a2f98,0xd728ae22, 0x71374491,0x23ef65c...
aluvalasuman/OpenSSL1.0.1cForAndroid
21,544
crypto/md5/asm/md5-ia64.S
/* Copyright (c) 2005 Hewlett-Packard Development Company, L.P. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, m...
aluvalasuman/OpenSSL1.0.1cForAndroid
28,245
crypto/bn/asm/sparcv8.S
.ident "sparcv8.s, Version 1.4" .ident "SPARC v8 ISA artwork by Andy Polyakov <appro@fy.chalmers.se>" /* * ==================================================================== * Written by Andy Polyakov <appro@fy.chalmers.se> for the OpenSSL * project. * * Rights for redistribution and usage in source and binary ...
aluvalasuman/OpenSSL1.0.1cForAndroid
45,313
crypto/bn/asm/ia64.S
.explicit .text .ident "ia64.S, Version 2.1" .ident "IA-64 ISA artwork by Andy Polyakov <appro@fy.chalmers.se>" // // ==================================================================== // Written by Andy Polyakov <appro@fy.chalmers.se> for the OpenSSL // project. // // Rights for redistribution and usage in source a...
aluvalasuman/OpenSSL1.0.1cForAndroid
46,674
crypto/bn/asm/pa-risc2W.s
; ; PA-RISC 64-bit implementation of bn_asm code ; ; This code is approximately 2x faster than the C version ; for RSA/DSA. ; ; See http://devresource.hp.com/ for more details on the PA-RISC ; architecture. Also see the book "PA-RISC 2.0 Architecture" ; by Gerry Kane for information on the instruction set architectur...
aluvalasuman/OpenSSL1.0.1cForAndroid
48,599
crypto/bn/asm/pa-risc2.s
; ; PA-RISC 2.0 implementation of bn_asm code, based on the ; 64-bit version of the code. This code is effectively the ; same as the 64-bit version except the register model is ; slightly different given all values must be 32-bit between ; function calls. Thus the 64-bit return values are returned ; in %ret0 and %ret...
aluvalasuman/OpenSSL1.0.1cForAndroid
37,614
crypto/bn/asm/mips3.s
.rdata .asciiz "mips3.s, Version 1.1" .asciiz "MIPS III/IV ISA artwork by Andy Polyakov <appro@fy.chalmers.se>" /* * ==================================================================== * Written by Andy Polyakov <appro@fy.chalmers.se> for the OpenSSL * project. * * Rights for redistribution and usage in source a...
aluvalasuman/OpenSSL1.0.1cForAndroid
33,130
crypto/bn/asm/sparcv8plus.S
.ident "sparcv8plus.s, Version 1.4" .ident "SPARC v9 ISA artwork by Andy Polyakov <appro@fy.chalmers.se>" /* * ==================================================================== * Written by Andy Polyakov <appro@fy.chalmers.se> for the OpenSSL * project. * * Rights for redistribution and usage in source and bin...
aluvalasuman/OpenSSL1.0.1cForAndroid
3,254
crypto/bn/asm/armv4-mont.S
.text .global bn_mul_mont .type bn_mul_mont,%function .align 2 bn_mul_mont: stmdb sp!,{r0,r2} @ sp points at argument block ldr r0,[sp,#3*4] @ load num cmp r0,#2 movlt r0,#0 addlt sp,sp,#2*4 blt .Labrt stmdb sp!,{r4-r12,lr} @ save 10 registers mov r0,r0,lsl#2 @ rescale r0 for byte count sub sp,sp,r0 @...
aluvalasuman/OpenSSL1.0.1cForAndroid
12,636
crypto/bn/asm/s390x.S
.ident "s390x.S, version 1.1" // ==================================================================== // Written by Andy Polyakov <appro@fy.chalmers.se> for the OpenSSL // project. // // Rights for redistribution and usage in source and binary forms are // granted according to the OpenSSL license. Warranty of any kind ...