Skip to content

Commit 607280e

Browse files
Develop (#5)
* Develop of 0.2.0 established * Globally accessible public macros prefixed with c64lib_ prefix * CHANGES.md file introduced * Gradle Wrapper added * gradlew made executable * Migrate to gradle retro assermbler plugin * Fix in travis.yml * Migrated to 0.3.0 * move to circleci, upgrade to ka 5.9 * fix on plugin version * Migrate to retro 1.0.0 * Update Ka to 5.11, Ra to 1.0.1 * dep version update * sprite and charset defition macros * add default charset * fixed import * more work on charset * Remove charsets * Update README.md, build and vic2.asm * Remove unused * Changelog update
1 parent 5f4fb0c commit 607280e

17 files changed

Lines changed: 829 additions & 456 deletions

.circleci/config.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Java Gradle CircleCI 2.0 configuration file
2+
version: 2
3+
jobs:
4+
build:
5+
branches:
6+
only:
7+
- master
8+
- develop
9+
docker:
10+
- image: maciejmalecki/c64libci:0.1.4
11+
12+
working_directory: ~/repo
13+
14+
environment:
15+
JVM_OPTS: -Xmx3200m
16+
TERM: dumb
17+
18+
steps:
19+
- checkout
20+
21+
- run: ./gradlew

.gitignore

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
1-
.cbm
21
*.prg
32
*.sym
4-
3+
.asminfo.txt
4+
.source.txt
5+
# gradle
6+
.gradle
7+
build
8+
*.dbg
9+
*.vs
10+
.idea
11+
.ra

.travis.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
11
language: asm
22
sudo: false
3-
before_install:
4-
- source <(curl -SLs https://raw.githubusercontent.com/c64lib/travis-ci/master/install.sh)
53
script:
6-
- cpm common https://github.com/c64lib/common/archive/0.1.0.tar.gz
7-
- kall lib
8-
- kall examples
4+
- ./gradlew
95
notifications:
106
email:
117
on_success: change

README.md

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,13 @@
1-
# chipset
2-
3-
* master: [![Build Status](https://travis-ci.org/c64lib/chipset.svg?branch=master)](https://travis-ci.org/c64lib/chipset)
4-
* develop: [![Build Status](https://travis-ci.org/c64lib/chipset.svg?branch=develop)](https://travis-ci.org/c64lib/chipset)
1+
# c64lib/chipset
2+
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
3+
[![Build Status](https://travis-ci.org/c64lib/chipset.svg?branch=master)](https://travis-ci.org/c64lib/chipset)
4+
[![Build Status](https://travis-ci.org/c64lib/chipset.svg?branch=develop)](https://travis-ci.org/c64lib/chipset)
5+
[![Gitter](https://badges.gitter.im/c64lib/community.svg)](https://gitter.im/c64lib/community?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge)
6+
7+
## Change log
8+
### Changes in 0.2.0
9+
10+
* Public symbols are now also declared as global in "-global.asm" files
11+
12+
* New macro: `sprites.asm/sh` - define single line of hires sprite.
13+
* New macro: `sprites.asm/sm` - define single line of multicolor sprite.

build.gradle

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
plugins {
2+
id "com.github.c64lib.retro-assembler" version "1.1.0-rc01"
3+
}
4+
5+
repositories {
6+
jcenter()
7+
}
8+
9+
apply plugin: "com.github.c64lib.retro-assembler"
10+
11+
retroProject {
12+
dialect = "KickAssembler"
13+
dialectVersion = "5.13"
14+
libDirs = ["..", ".ra/deps/c64lib"]
15+
16+
libFromGitHub "c64lib/common", "0.2.0"
17+
}
18+

examples/e01-raster-irq.asm

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
* Copper demo 1.
33
*/
44

5-
#import "common/lib/mem.asm"
5+
#import "common/lib/mem-global.asm"
66
#import "../lib/cia.asm"
7-
#import "../lib/vic2.asm"
8-
#import "../lib/mos6510.asm"
7+
#import "../lib/vic2-global.asm"
8+
#import "../lib/mos6510-global.asm"
99

1010
.label IRQ_1 = 150
1111
.label IRQ_2 = 200
@@ -25,7 +25,7 @@ start:
2525
lda c64lib.CIA2_IRQ_CONTROL
2626
lda #c64lib.IMR_RASTER // VIC-II is about to produce raster interrupt
2727
sta c64lib.IMR
28-
setRaster(IRQ_1)
28+
c64lib_setRaster(IRQ_1)
2929
lda #<irq1
3030
sta c64lib.IRQ_LO
3131
lda #>irq1
@@ -34,23 +34,23 @@ start:
3434
sta c64lib.NMI_LO
3535
lda #>irqFreeze
3636
sta c64lib.NMI_HI
37-
configureMemory(c64lib.RAM_IO_RAM) // turn off kernal, so that our vector becomes visible
37+
c64lib_configureMemory(c64lib.RAM_IO_RAM) // turn off kernal, so that our vector becomes visible
3838
cli
3939
block:
4040
jmp block // go into endless loop
4141
4242
irq1: {
43-
irqEnter()
43+
c64lib_irqEnter()
4444
inc c64lib.BG_COL_0 // change background color
4545
inc c64lib.BORDER_COL // change border color
46-
irqExit(irq2, IRQ_2, false)
46+
c64lib_irqExit(irq2, IRQ_2, false)
4747
}
4848

4949
irq2: {
50-
irqEnter()
50+
c64lib_irqEnter()
5151
dec c64lib.BG_COL_0 // change it back
5252
dec c64lib.BORDER_COL // change it back
53-
irqExit(irq1, IRQ_1, false)
53+
c64lib_irqExit(irq1, IRQ_1, false)
5454
}
5555
5656
irqFreeze: {

gradle/wrapper/gradle-wrapper.jar

54.3 KB
Binary file not shown.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
distributionBase=GRADLE_USER_HOME
2+
distributionPath=wrapper/dists
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-5.4.1-bin.zip
4+
zipStoreBase=GRADLE_USER_HOME
5+
zipStorePath=wrapper/dists

gradlew

Lines changed: 188 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)