commit stringlengths 40 40 | subject stringlengths 6 199 | message stringlengths 11 1.33k | repos stringlengths 15 11.5k | file_path stringlengths 6 59 | license stringclasses 9
values | unix_time int64 1.33B 1.61B | new_contents stringlengths 151 211k | old_contents stringlengths 151 208k |
|---|---|---|---|---|---|---|---|---|
5e88b0d6fb69340f6581ef70beab9bac462e57d3 | ajuste menores no problema 1 | ajuste menores no problema 1
| douglasbolis/OacTrabalho,douglasbolis/OacTrabalho | assembly/Problema1.asm | apache-2.0 | 1,438,539,274 | ;; PROBLEMA1.ASM
ORG 100H
CALL MAIN
RET
PROC LEIA_VARIAVEIS
;LADOA
PUSH AX
PUSH BX
PUSH CX
LEA DX, MSG_LADO_A ; ARMAZENA ARRAY NO DX PARA SER UTILIZADO NO READ
CALL READ
POP CX
POP BX
POP AX
MOV AL, READNUM
;LADOB
PUSH AX
PUSH BX
PUSH CX
LEA DX, MSG_LADO_B ; ARM... | ;; PROBLEMA1.ASM
ORG 100H
CALL MAIN
RET
PROC LEIA_VARIAVEIS
;LADOA
PUSH AX
PUSH BX
PUSH CX
LEA DX, MSG_LADO_A ; ARMAZENA ARRAY NO DX PARA SER UTILIZADO NO READ
CALL READ
POP CX
POP BX
POP AX
MOV AL, READNUM
;LADOB
PUSH AX
PUSH BX
PUSH CX
LEA DX, MSG_LADO_B ; ARM... |
8608f418d36428b6e5a4a9a28a1d442d87d64cd0 | Refactor to use common SPI byte exchange procedure. | Refactor to use common SPI byte exchange procedure.
| sam-falvo/kestrel,KestrelComputer/kestrel,sam-falvo/kestrel,sam-falvo/kestrel,sam-falvo/kestrel,sam-falvo/kestrel,KestrelComputer/kestrel,KestrelComputer/kestrel,KestrelComputer/kestrel,KestrelComputer/kestrel | 3/src/mlm/mlm.asm | mpl-2.0 | 1,436,754,153 | ;**************************************************************
; Kestrel-3 Machine Language Monitor
; Release 0.4
;**************************************************************
include "cpu/csrs.i"
include "cpu/regs.i"
include "debugio.i"
; BIOS Line Input Control Block (BLICB)
blicb_buffer = 0
blicb_length = b... | ;**************************************************************
; Kestrel-3 Machine Language Monitor
; Release 0.4
;**************************************************************
include "cpu/csrs.i"
include "cpu/regs.i"
include "debugio.i"
; BIOS Line Input Control Block (BLICB)
blicb_buffer = 0
blicb_length = b... |
00ab4d2d19a3e9ef36cbe41e687d3055412654a3 | Exchange bytes with SPI slave. | Exchange bytes with SPI slave.
I should have written this as the very first thing involving the SPI
port.
| KestrelComputer/kestrel,KestrelComputer/kestrel,sam-falvo/kestrel,sam-falvo/kestrel,KestrelComputer/kestrel,KestrelComputer/kestrel,KestrelComputer/kestrel,sam-falvo/kestrel,sam-falvo/kestrel,sam-falvo/kestrel | 3/src/mlm/mlm.asm | mpl-2.0 | 1,436,752,613 | ;**************************************************************
; Kestrel-3 Machine Language Monitor
; Release 0.4
;**************************************************************
include "cpu/csrs.i"
include "cpu/regs.i"
include "debugio.i"
; BIOS Line Input Control Block (BLICB)
blicb_buffer = 0
blicb_length = b... | ;**************************************************************
; Kestrel-3 Machine Language Monitor
; Release 0.4
;**************************************************************
include "cpu/csrs.i"
include "cpu/regs.i"
include "debugio.i"
; BIOS Line Input Control Block (BLICB)
blicb_buffer = 0
blicb_length = b... |
2be182c077d239b530373a50effc05ac110d3104 | Confirm oint looks words up | Confirm oint looks words up
| sam-falvo/kestrel,sam-falvo/kestrel,sam-falvo/kestrel,KestrelComputer/kestrel,KestrelComputer/kestrel,sam-falvo/kestrel,KestrelComputer/kestrel,sam-falvo/kestrel,KestrelComputer/kestrel,KestrelComputer/kestrel | 3/src/forth/test_oint.asm | mpl-2.0 | 1,432,417,291 | include "asrt.i"
include "oint.asm"
include "scan.asm"
include "char.asm"
; Dependencies required by oint module.
epv_ointGetAndInterpretLine = 0
epv_dictLocateWord = epv_ointGetAndInterpretLine+8
ointGetAndInterpretLine:
ld t0, zpV(x0)
jalr x0, 0(t0)
dictLocateWord:
ld t0, zpV(x0)
jalr x0, epv_dic... | include "asrt.i"
include "oint.asm"
include "scan.asm"
include "char.asm"
; Dependencies required by oint module.
epv_ointGetAndInterpretLine = 0
epv_dictLocateWord = epv_ointGetAndInterpretLine+8
ointGetAndInterpretLine:
ld t0, zpV(x0)
jalr x0, 0(t0)
dictLocateWord:
ld t0, zpV(x0)
jalr x0, epv_dic... |
5016d7b12f09dced55dcc18b3ea839d2f9caeced | Add CR/LF to pass/fail message for easier reading. | Add CR/LF to pass/fail message for easier reading.
| sam-falvo/kestrel,sam-falvo/kestrel,KestrelComputer/kestrel,KestrelComputer/kestrel,sam-falvo/kestrel,KestrelComputer/kestrel,sam-falvo/kestrel,KestrelComputer/kestrel,sam-falvo/kestrel,KestrelComputer/kestrel | 3/src/forth/suite.asm | mpl-2.0 | 1,432,327,161 | romBase = $0FFFFFFFFFFF0000
include "cpu/regs.i"
include "zp.i"
include "tests/scan.asm"
include "scan.asm"
include "tests/char.asm"
include "char.asm"
include "con.asm"
; Cold boot entry point.
align 8
start_tests: or x0, x0, x0
jal ra, L1
dword $0E00000000000000 ; Pointer to debugger UART ... | romBase = $0FFFFFFFFFFF0000
include "cpu/regs.i"
include "zp.i"
include "tests/scan.asm"
include "scan.asm"
include "tests/char.asm"
include "char.asm"
include "con.asm"
; Cold boot entry point.
align 8
start_tests: or x0, x0, x0
jal ra, L1
dword $0E00000000000000 ; Pointer to debugger UART ... |
326664c99fb5a55458110dc88d75ff65b9ffe07d | Missing comment | Missing comment
| sam-falvo/kestrel,KestrelComputer/kestrel,sam-falvo/kestrel,KestrelComputer/kestrel,sam-falvo/kestrel,sam-falvo/kestrel,KestrelComputer/kestrel,KestrelComputer/kestrel,sam-falvo/kestrel,KestrelComputer/kestrel | 3/src/forth/tests/char.asm | mpl-2.0 | 1,432,269,011 | ; Is a character whitespace? We define whitespace as any character c that
; satisfies the inequality 0 <= c < 32. This definition is obviously ASCII-
; specific, and completely ignores Unicode concerns.
byte "charIsWS"
testCharIsWhitespace:
sd ra, zpTestPC(x0)
or s6, x0, x0
tIW1: addi s7, x0, 32
beq s6, s7,... | ; Is a character whitespace? We define whitespace as any character c that
; satisfies the inequality 0 <= c < 32. This definition is obviously ASCII-
; specific, and completely ignores Unicode concerns.
byte "charIsWS"
testCharIsWhitespace:
sd ra, zpTestPC(x0)
or s6, x0, x0
tIW1: addi s7, x0, 32
beq s6, s7,... |
c6328e569d48500b646f72cf83d688185686d5a7 | Support printing hex numbers to the console | Support printing hex numbers to the console
| KestrelComputer/kestrel,KestrelComputer/kestrel,KestrelComputer/kestrel,KestrelComputer/kestrel,sam-falvo/kestrel,sam-falvo/kestrel,sam-falvo/kestrel,KestrelComputer/kestrel,sam-falvo/kestrel,sam-falvo/kestrel | 3/src/forth/con.asm | mpl-2.0 | 1,432,268,882 | ; Emit a character to the console.
; conEmit(ch)
; a0
conEmit: ld t0, zpUartBase(x0)
sb a0, 0(t0)
jalr x0, 0(ra)
; Type a counted string to the console.
; conType(msg, len)
; a0 a1
conType: or t1, a0, x0
or t2, ra, x0
cT1: beq a1, x0, cT2 ; len >= 0
lb a0, 0(t1) ; len > 0
jal ra, conEmit... | ; Emit a character to the console.
; conEmit(ch)
; a0
conEmit: ld t0, zpUartBase(x0)
sb a0, 0(t0)
jalr x0, 0(ra)
; Type a counted string to the console.
; conType(msg, len)
; a0 a1
conType: or t1, a0, x0
or t2, ra, x0
cT1: beq a1, x0, cT2 ; len >= 0
lb a0, 0(t1) ; len > 0
jal ra, conEmit... |
3b9c0bf8412ba7d52bbac333dea4a53aea027881 | Don't display gibberish if no apps are installed | Don't display gibberish if no apps are installed
Closes KnightOS/KnightOS#311.
| KnightOS/castle | applist.asm | mit | 1,431,210,987 | applicationList:
xor a
kld((manifestScroll), a)
pcall(clearBuffer)
kcall(drawAppsChrome)
kcall(drawAppsHome)
kcall(getManifestList)
; Check for empty
kld(a, (manifestCount))
or a
kjp(z, displayEmptyMessage)
kcall(drawManifestList)
ld c, 0
kcall(xorManifestCaret)
.loo... | applicationList:
xor a
kld((manifestScroll), a)
pcall(clearBuffer)
kcall(drawAppsChrome)
kcall(drawAppsHome)
kcall(getManifestList)
kcall(drawManifestList)
ld c, 0
kcall(xorManifestCaret)
.loop:
pcall(fastCopy)
pcall(flushKeys)
pcall(waitKey)
cp kClear
jr z, .re... |
4530923ace656c84449116c651d3ad5437204a51 | Small code style fixes | Small code style fixes
| KnightOS/kernel,calcdude84se/knightos-kernel,calcdude84se/knightos-kernel,unlimitedbacon/kernel,KnightOS/kernel,unlimitedbacon/kernel | src/02/time.asm | mit | 1,427,399,545 | ;; clockSupported [Time]
;; Returns whether the clock is supported.
;; Outputs:
;; A: Preserved on success; error code on failure
;; Z: Set when the clock is supported; reset otherwise
clockSupported:
#ifdef CLOCK
cp a ; set Z
#else
or 1 ; reset Z
ld a, errUnsupported
#endif
ret
;; setClock [Ti... | ;; clockSupported [Time]
;; Returns whether the clock is supported.
;; Outputs:
;; A: Preserved on success; error code on failure
;; Z: Set when the clock is supported; reset otherwise
clockSupported:
#ifdef CLOCK
cp a ; set Z
#else
or 1 ; reset Z
ld a, errUnsupported
#endif
ret
;; setClock [Ti... |
6f7c9730279c108f21e5d1386e8f531f478f4479 | Fix more bugs in yearDayToDate | Fix more bugs in yearDayToDate
All 35 unit tests pass now.
| calcdude84se/knightos-kernel,unlimitedbacon/kernel,unlimitedbacon/kernel,KnightOS/kernel,calcdude84se/knightos-kernel,KnightOS/kernel | src/02/time.asm | mit | 1,427,399,358 | ;; clockSupported [Time]
;; Returns whether the clock is supported.
;; Outputs:
;; A: Preserved on success; error code on failure
;; Z: Set when the clock is supported; reset otherwise
clockSupported:
#ifdef CLOCK
cp a ; set Z
#else
or 1 ; reset Z
ld a, errUnsupported
#endif
ret
;; setClock [Ti... | ;; clockSupported [Time]
;; Returns whether the clock is supported.
;; Outputs:
;; A: Preserved on success; error code on failure
;; Z: Set when the clock is supported; reset otherwise
clockSupported:
#ifdef CLOCK
cp a ; set Z
#else
or 1 ; reset Z
ld a, errUnsupported
#endif
ret
;; setClock [Ti... |
84379a33a9e0376314e949c97495b56314c3a861 | reassignMemory check thread existence | reassignMemory check thread existence | KnightOS/kernel,KnightOS/kernel,unlimitedbacon/kernel,calcdude84se/knightos-kernel,unlimitedbacon/kernel,calcdude84se/knightos-kernel | src/00/memory.asm | mit | 1,427,229,171 | ; formatMem [System]
; Formats memory in preparation for memory allocation.
; Notes:
; This function will deallocate **all allocated memory**.
formatMem:
ld a, 0xFF
ld (userMemory), a
ld hl, (0x10000 - userMemory) - 5 ; Total RAM - Kernel RAM Size - Formatting Overhead + 1
ld (userMemory + 1), hl
... | ; formatMem [System]
; Formats memory in preparation for memory allocation.
; Notes:
; This function will deallocate **all allocated memory**.
formatMem:
ld a, 0xFF
ld (userMemory), a
ld hl, (0x10000 - userMemory) - 5 ; Total RAM - Kernel RAM Size - Formatting Overhead + 1
ld (userMemory + 1), hl
... |
ce6bb812c144d1bc41100911a8dd2003bd73ba5f | Update graphics.asm | Update graphics.asm
rectAND now preserve registers | unlimitedbacon/kernel,KnightOS/kernel,calcdude84se/knightos-kernel,KnightOS/kernel,calcdude84se/knightos-kernel,unlimitedbacon/kernel | src/02/graphics.asm | mit | 1,427,123,528 | ;; getPixel [Display]
;; Finds the address of and mask for a pixel on the screen buffer.
;; Inputs:
;; IY: Screen buffer
;; A,L: X, Y
;; Outputs:
;; HL: Address of pixel
;; A: Mask
;; Notes:
;; If the pixel is on, HL & A is nonzero.
getPixel:
push de
push bc
ld h, 0
ld d, h
ld e, l... | ;; getPixel [Display]
;; Finds the address of and mask for a pixel on the screen buffer.
;; Inputs:
;; IY: Screen buffer
;; A,L: X, Y
;; Outputs:
;; HL: Address of pixel
;; A: Mask
;; Notes:
;; If the pixel is on, HL & A is nonzero.
getPixel:
push de
push bc
ld h, 0
ld d, h
ld e, l... |
f8f7a8747e3d9e779513bdf6d5f538f94bc5b692 | Update display.asm | Update display.asm
rectOR now preserve registers | calcdude84se/knightos-kernel,unlimitedbacon/kernel,unlimitedbacon/kernel,KnightOS/kernel,calcdude84se/knightos-kernel,KnightOS/kernel | src/00/display.asm | mit | 1,427,123,372 | #ifndef COLOR
initDisplay:
; Initialize LCD
ld a, 1 + LCD_CMD_AUTOINCDEC_SETX
call lcdDelay
out (PORT_LCD_CMD), a ; X-Increment Mode
ld a, 1 + LCD_CMD_SETOUTPUTMODE
call lcdDelay
out (PORT_LCD_CMD), a ; 8-bit mode
ld a, 1 + LCD_CMD_SETDISPLAY
call lcdDelay
out (PORT_LCD_CMD), a... | #ifndef COLOR
initDisplay:
; Initialize LCD
ld a, 1 + LCD_CMD_AUTOINCDEC_SETX
call lcdDelay
out (PORT_LCD_CMD), a ; X-Increment Mode
ld a, 1 + LCD_CMD_SETOUTPUTMODE
call lcdDelay
out (PORT_LCD_CMD), a ; 8-bit mode
ld a, 1 + LCD_CMD_SETDISPLAY
call lcdDelay
out (PORT_LCD_CMD), a... |
87a1edcc96d77ef612d09b8271b91c325910de6c | Rewrote yearDayToDate (still not working correctly) | Rewrote yearDayToDate (still not working correctly)
This version only calls isLeapYear once instead of twelve times. Unfortunately
there still is a bug in the function; for example it returns 225 January
instead of 1 February for input 32.
| unlimitedbacon/kernel,KnightOS/kernel,calcdude84se/knightos-kernel,calcdude84se/knightos-kernel,unlimitedbacon/kernel,KnightOS/kernel | src/02/time.asm | mit | 1,427,059,362 | ;; clockSupported [Time]
;; Returns whether the clock is supported.
;; Outputs:
;; A: Preserved on success; error code on failure
;; Z: Set when the clock is supported; reset otherwise
clockSupported:
#ifdef CLOCK
cp a ; set Z
#else
or 1 ; reset Z
ld a, errUnsupported
#endif
ret
;; setClock [Ti... | ;; clockSupported [Time]
;; Returns whether the clock is supported.
;; Outputs:
;; A: Preserved on success; error code on failure
;; Z: Set when the clock is supported; reset otherwise
clockSupported:
#ifdef CLOCK
cp a ; set Z
#else
or 1 ; reset Z
ld a, errUnsupported
#endif
ret
;; setClock [Ti... |
1ce7e42a066a985115e47d2c7b15773f166cc187 | Initial implementation of yearDayToDate (thanks boos1993) | Initial implementation of yearDayToDate (thanks boos1993)
It doesn't work yet, unfortunately. I will debug it later.
| unlimitedbacon/kernel,KnightOS/kernel,KnightOS/kernel,unlimitedbacon/kernel,calcdude84se/knightos-kernel,calcdude84se/knightos-kernel | src/02/time.asm | mit | 1,427,040,531 | ;; clockSupported [Time]
;; Returns whether the clock is supported.
;; Outputs:
;; A: Preserved on success; error code on failure
;; Z: Set when the clock is supported; reset otherwise
clockSupported:
#ifdef CLOCK
cp a ; set Z
#else
or 1 ; reset Z
ld a, errUnsupported
#endif
ret
;; setClock [Ti... | ;; clockSupported [Time]
;; Returns whether the clock is supported.
;; Outputs:
;; A: Preserved on success; error code on failure
;; Z: Set when the clock is supported; reset otherwise
clockSupported:
#ifdef CLOCK
cp a ; set Z
#else
or 1 ; reset Z
ld a, errUnsupported
#endif
ret
;; setClock [Ti... |
ef2aba48acbd7b5b231b3b299986cff11bcc0ed3 | Add stub for function yearDayToDate | Add stub for function yearDayToDate
| unlimitedbacon/kernel,KnightOS/kernel,KnightOS/kernel,unlimitedbacon/kernel,calcdude84se/knightos-kernel,calcdude84se/knightos-kernel | src/02/time.asm | mit | 1,425,332,099 | ;; clockSupported [Time]
;; Returns whether the clock is supported.
;; Outputs:
;; A: Preserved on success; error code on failure
;; Z: Set when the clock is supported; reset otherwise
clockSupported:
#ifdef CLOCK
cp a ; set Z
#else
or 1 ; reset Z
ld a, errUnsupported
#endif
ret
;; setClock [Ti... | ;; clockSupported [Time]
;; Returns whether the clock is supported.
;; Outputs:
;; A: Preserved on success; error code on failure
;; Z: Set when the clock is supported; reset otherwise
clockSupported:
#ifdef CLOCK
cp a ; set Z
#else
or 1 ; reset Z
ld a, errUnsupported
#endif
ret
;; setClock [Ti... |
d0c3d5da2af76deda7966b79153e2ba6f3f40bae | Fixed a bug in the year calculation | Fixed a bug in the year calculation
I accidentally overwrote ix (the number of days since the epoch) by the year
number, which caused problems.
Also, fixed a bug in daysSinceEpoch (this function didn't preserve de and bc).
Finally, modified the code to actually return the computed year in ix. All
tests pass now for ... | KnightOS/kernel,calcdude84se/knightos-kernel,calcdude84se/knightos-kernel,KnightOS/kernel,unlimitedbacon/kernel,unlimitedbacon/kernel | src/02/time.asm | mit | 1,425,330,675 | ;; clockSupported [Time]
;; Returns whether the clock is supported.
;; Outputs:
;; A: Preserved on success; error code on failure
;; Z: Set when the clock is supported; reset otherwise
clockSupported:
#ifdef CLOCK
cp a ; set Z
#else
or 1 ; reset Z
ld a, errUnsupported
#endif
ret
;; setClock [Ti... | ;; clockSupported [Time]
;; Returns whether the clock is supported.
;; Outputs:
;; A: Preserved on success; error code on failure
;; Z: Set when the clock is supported; reset otherwise
clockSupported:
#ifdef CLOCK
cp a ; set Z
#else
or 1 ; reset Z
ld a, errUnsupported
#endif
ret
;; setClock [Ti... |
2b6a79cfdd6a4ec3bf85e4c972898e98f05917f9 | Add code to compute the year of a tick value | Add code to compute the year of a tick value
It may be nice to split this into a separate (non-public) function yearOfTicks,
to improve the readability.
Note that this is mostly untested at the moment.
| KnightOS/kernel,KnightOS/kernel,unlimitedbacon/kernel,calcdude84se/knightos-kernel,calcdude84se/knightos-kernel,unlimitedbacon/kernel | src/02/time.asm | mit | 1,425,327,738 | ;; clockSupported [Time]
;; Returns whether the clock is supported.
;; Outputs:
;; A: Preserved on success; error code on failure
;; Z: Set when the clock is supported; reset otherwise
clockSupported:
#ifdef CLOCK
cp a ; set Z
#else
or 1 ; reset Z
ld a, errUnsupported
#endif
ret
;; setClock [Ti... | ;; clockSupported [Time]
;; Returns whether the clock is supported.
;; Outputs:
;; A: Preserved on success; error code on failure
;; Z: Set when the clock is supported; reset otherwise
clockSupported:
#ifdef CLOCK
cp a ; set Z
#else
or 1 ; reset Z
ld a, errUnsupported
#endif
ret
;; setClock [Ti... |
eac8b652459d1b170bf28e6e29d8e865d8731235 | test.asm only has 1x 16kb PRG ROM bank | test.asm only has 1x 16kb PRG ROM bank
| Plingot/yana,Plingot/yana,Plingot/yana | test.asm | mit | 1,424,554,331 | .inesprg 1
.ineschr 1
.inesmir 1
.inesmap 0
.org $8000
.bank 0
Start:
; this setups the PPU
lda #%00001000
sta $2000
lda #%00011110
sta $2001
; set to start of palette
lda #$3f
sta $2006
lda #$00
sta $2006
; these are the write that setup the palette
lda #$01
sta $2007
lda #$02
sta $2007
lda ... | .inesprg 2
.ineschr 1
.inesmir 1
.inesmap 0
.org $8000
.bank 0
Start:
; this setups the PPU
lda #%00001000
sta $2000
lda #%00011110
sta $2001
; set to start of palette
lda #$3f
sta $2006
lda #$00
sta $2006
; these are the write that setup the palette
lda #$01
sta $2007
lda #$02
sta $2007
lda ... |
08e10b0e12c5470ffc230776989bac688fb6cc89 | Split function daysSinceEpoch from convertTimeToTicks | Split function daysSinceEpoch from convertTimeToTicks
This makes the code more clear, and secondly we will also need a way to compute
the number of days since the epoch in convertTimeFromTicks.
| unlimitedbacon/kernel,KnightOS/kernel,unlimitedbacon/kernel,calcdude84se/knightos-kernel,calcdude84se/knightos-kernel,KnightOS/kernel | src/02/time.asm | mit | 1,422,993,894 | ;; clockSupported [Time]
;; Returns whether the clock is supported.
;; Outputs:
;; A: Preserved on success; error code on failure
;; Z: Set when the clock is supported; reset otherwise
clockSupported:
#ifdef CLOCK
cp a ; set Z
#else
or 1 ; reset Z
ld a, errUnsupported
#endif
ret
;; setClock [Ti... | ;; clockSupported [Time]
;; Returns whether the clock is supported.
;; Outputs:
;; A: Preserved on success; error code on failure
;; Z: Set when the clock is supported; reset otherwise
clockSupported:
#ifdef CLOCK
cp a ; set Z
#else
or 1 ; reset Z
ld a, errUnsupported
#endif
ret
;; setClock [Ti... |
f0babf540a5f4fdbf812d78b7890cae6c7927b03 | Start working on convertTimeFromTicks | Start working on convertTimeFromTicks
At the moment only the time is computed correctly.
| unlimitedbacon/kernel,calcdude84se/knightos-kernel,KnightOS/kernel,calcdude84se/knightos-kernel,unlimitedbacon/kernel,KnightOS/kernel | src/02/time.asm | mit | 1,422,616,843 | ;; clockSupported [Time]
;; Returns whether the clock is supported.
;; Outputs:
;; A: Preserved on success; error code on failure
;; Z: Set when the clock is supported; reset otherwise
clockSupported:
#ifdef CLOCK
cp a ; set Z
#else
or 1 ; reset Z
ld a, errUnsupported
#endif
ret
;; setClock [Ti... | ;; clockSupported [Time]
;; Returns whether the clock is supported.
;; Outputs:
;; A: Preserved on success; error code on failure
;; Z: Set when the clock is supported; reset otherwise
clockSupported:
#ifdef CLOCK
cp a ; set Z
#else
or 1 ; reset Z
ld a, errUnsupported
#endif
ret
;; setClock [Ti... |
4b7cd2accf5abfa7ef0a975d20af7e36322d65f8 | Fix overflow in daysBeforeMonth | Fix overflow in daysBeforeMonth
The output of this method would be given in A, but of course the output could
be bigger than 255. Hence, this method would fail for October and higher, also
causing problems in convertTimeToTicks.
Fixed it now by putting the output in BC instead of A.
| unlimitedbacon/kernel,KnightOS/kernel,calcdude84se/knightos-kernel,calcdude84se/knightos-kernel,KnightOS/kernel,unlimitedbacon/kernel | src/02/time.asm | mit | 1,422,477,819 | ;; clockSupported [Time]
;; Returns whether the clock is supported.
;; Outputs:
;; A: Preserved on success; error code on failure
;; Z: Set when the clock is supported; reset otherwise
clockSupported:
#ifdef CLOCK
cp a ; set Z
#else
or 1 ; reset Z
ld a, errUnsupported
#endif
ret
;; setClock [Ti... | ;; clockSupported [Time]
;; Returns whether the clock is supported.
;; Outputs:
;; A: Preserved on success; error code on failure
;; Z: Set when the clock is supported; reset otherwise
clockSupported:
#ifdef CLOCK
cp a ; set Z
#else
or 1 ; reset Z
ld a, errUnsupported
#endif
ret
;; setClock [Ti... |
8f583c0c86c254e2a9a674033ba3e4663c6e6ccd | Finish convertTimeToTicks | Finish convertTimeToTicks
I tested the function with several unit tests and it seems to work correctly
in both normal years and leap years.
| unlimitedbacon/kernel,KnightOS/kernel,unlimitedbacon/kernel,KnightOS/kernel,calcdude84se/knightos-kernel,calcdude84se/knightos-kernel | src/02/time.asm | mit | 1,422,473,957 | ;; clockSupported [Time]
;; Returns whether the clock is supported.
;; Outputs:
;; A: Preserved on success; error code on failure
;; Z: Set when the clock is supported; reset otherwise
clockSupported:
#ifdef CLOCK
cp a ; set Z
#else
or 1 ; reset Z
ld a, errUnsupported
#endif
ret
;; setClock [Ti... | ;; clockSupported [Time]
;; Returns whether the clock is supported.
;; Outputs:
;; A: Preserved on success; error code on failure
;; Z: Set when the clock is supported; reset otherwise
clockSupported:
#ifdef CLOCK
cp a ; set Z
#else
or 1 ; reset Z
ld a, errUnsupported
#endif
ret
;; setClock [Ti... |
b775cc5b7f30aa008791abf9018acd0fc8fba850 | Remove documentation comments for daysBeforeMonth | Remove documentation comments for daysBeforeMonth
We don't want to expose that function anyway.
| KnightOS/kernel,unlimitedbacon/kernel,KnightOS/kernel,calcdude84se/knightos-kernel,unlimitedbacon/kernel,calcdude84se/knightos-kernel | src/02/time.asm | mit | 1,422,435,865 | ;; clockSupported [Time]
;; Returns whether the clock is supported.
;; Outputs:
;; A: Preserved on success; error code on failure
;; Z: Set when the clock is supported; reset otherwise
clockSupported:
#ifdef CLOCK
cp a ; set Z
#else
or 1 ; reset Z
ld a, errUnsupported
#endif
ret
;; setClock [Ti... | ;; clockSupported [Time]
;; Returns whether the clock is supported.
;; Outputs:
;; A: Preserved on success; error code on failure
;; Z: Set when the clock is supported; reset otherwise
clockSupported:
#ifdef CLOCK
cp a ; set Z
#else
or 1 ; reset Z
ld a, errUnsupported
#endif
ret
;; setClock [Ti... |
7e65a7577114d57970ffc09a8d656697b99180ba | Add day and month handling to convertTimeToTicks | Add day and month handling to convertTimeToTicks
Now only the time (i.e., hours, minutes and seconds) needs to be taken into
account.
I have not yet tested this with leap years.
| unlimitedbacon/kernel,calcdude84se/knightos-kernel,unlimitedbacon/kernel,KnightOS/kernel,calcdude84se/knightos-kernel,KnightOS/kernel | src/02/time.asm | mit | 1,422,394,937 | ;; clockSupported [Time]
;; Returns whether the clock is supported.
;; Outputs:
;; A: Preserved on success; error code on failure
;; Z: Set when the clock is supported; reset otherwise
clockSupported:
#ifdef CLOCK
cp a ; set Z
#else
or 1 ; reset Z
ld a, errUnsupported
#endif
ret
;; setClock [Ti... | ;; clockSupported [Time]
;; Returns whether the clock is supported.
;; Outputs:
;; A: Preserved on success; error code on failure
;; Z: Set when the clock is supported; reset otherwise
clockSupported:
#ifdef CLOCK
cp a ; set Z
#else
or 1 ; reset Z
ld a, errUnsupported
#endif
ret
;; setClock [Ti... |
4708fdf731ea72c476231c81e0cae3bb0e1b4334 | Start implementing convertTimeToTicks | Start implementing convertTimeToTicks
It now works for only the year (it computes the tick value of
1 January, 0:00:00 of that year).
| calcdude84se/knightos-kernel,calcdude84se/knightos-kernel,unlimitedbacon/kernel,unlimitedbacon/kernel,KnightOS/kernel,KnightOS/kernel | src/02/time.asm | mit | 1,422,384,803 | ;; clockSupported [Time]
;; Returns whether the clock is supported.
;; Outputs:
;; A: Preserved on success; error code on failure
;; Z: Set when the clock is supported; reset otherwise
clockSupported:
#ifdef CLOCK
cp a ; set Z
#else
or 1 ; reset Z
ld a, errUnsupported
#endif
ret
;; setClock [Ti... | ;; clockSupported [Time]
;; Returns whether the clock is supported.
;; Outputs:
;; A: Preserved on success; error code on failure
;; Z: Set when the clock is supported; reset otherwise
clockSupported:
#ifdef CLOCK
cp a ; set Z
#else
or 1 ; reset Z
ld a, errUnsupported
#endif
ret
;; setClock [Ti... |
1476fdda571e06ad313a57b2f46ffead64c7863f | Add an auxiliary function leapYearsSince1997 | Add an auxiliary function leapYearsSince1997
This function determines for a given year how many leap days happened between
1 January of that year and 1 January 1997.
| KnightOS/kernel,unlimitedbacon/kernel,calcdude84se/knightos-kernel,unlimitedbacon/kernel,KnightOS/kernel,calcdude84se/knightos-kernel | src/02/time.asm | mit | 1,421,780,765 | ;; clockSupported [Time]
;; Returns whether the clock is supported.
;; Outputs:
;; A: Preserved on success; error code on failure
;; Z: Set when the clock is supported; reset otherwise
clockSupported:
#ifdef CLOCK
cp a ; set Z
#else
or 1 ; reset Z
ld a, errUnsupported
#endif
ret
;; setClock [Ti... | ;; clockSupported [Time]
;; Returns whether the clock is supported.
;; Outputs:
;; A: Preserved on success; error code on failure
;; Z: Set when the clock is supported; reset otherwise
clockSupported:
#ifdef CLOCK
cp a ; set Z
#else
or 1 ; reset Z
ld a, errUnsupported
#endif
ret
;; setClock [Ti... |
b891ea25780950e29384156a8c8c1049ac0cccf7 | Remove superfluous whitespace, and fix more code style issues | Remove superfluous whitespace, and fix more code style issues
| calcdude84se/knightos-kernel,KnightOS/kernel,calcdude84se/knightos-kernel,KnightOS/kernel,unlimitedbacon/kernel,unlimitedbacon/kernel | src/02/time.asm | mit | 1,421,776,870 | ;; clockSupported [Time]
;; Returns whether the clock is supported.
;; Outputs:
;; A: Preserved on success; error code on failure
;; Z: Set when the clock is supported; reset otherwise
clockSupported:
#ifdef CLOCK
cp a ; set Z
#else
or 1 ; reset Z
ld a, errUnsupported
#endif
ret
;; setClock [Ti... | ;; clockSupported [Time]
;; Returns whether the clock is supported.
;; Outputs:
;; A: preserved on success; error code on failure
;; Z: set when the clock is supported; reset otherwise
clockSupported:
#ifdef CLOCK
cp a ; set Z
#else
or 1 ; reset Z
ld a, errUnsupported
#endif
ret
;; setClock [Time... |
52743dbe48704a8373e02f84bc5b8fef0b2c5fbb | Pick the correct menu table, based on clock_supported | Pick the correct menu table, based on clock_supported
| KnightOS/settings | main.asm | mit | 1,421,182,086 | #include "kernel.inc"
#include "corelib.inc"
.db "KEXC"
.db KEXC_ENTRY_POINT
.dw start
.db KEXC_STACK_SIZE
.dw 20
.db KEXC_KERNEL_VER
.db 0, 6
.db KEXC_NAME
.dw name
.db KEXC_HEADER_END
name:
.db "System Settings", 0
start:
pcall(getLcdLock)
pcall(getKeypadLock)
... | #include "kernel.inc"
#include "corelib.inc"
.db "KEXC"
.db KEXC_ENTRY_POINT
.dw start
.db KEXC_STACK_SIZE
.dw 20
.db KEXC_KERNEL_VER
.db 0, 6
.db KEXC_NAME
.dw name
.db KEXC_HEADER_END
name:
.db "System Settings", 0
start:
pcall(getLcdLock)
pcall(getKeypadLock)
... |
82b284d077032a6597c7bb7a559a3058e218ad02 | Make the number of options dependent on clock_supported | Make the number of options dependent on clock_supported
This avoids the selection being on the fourth item, while only three items are
drawn (since the date/time option is hidden).
Also, fix accidental reversal of the clock_supported variable; the option would
only be hidden for calculators that did have a clock.
| KnightOS/settings | main.asm | mit | 1,421,181,741 | #include "kernel.inc"
#include "corelib.inc"
.db "KEXC"
.db KEXC_ENTRY_POINT
.dw start
.db KEXC_STACK_SIZE
.dw 20
.db KEXC_KERNEL_VER
.db 0, 6
.db KEXC_NAME
.dw name
.db KEXC_HEADER_END
name:
.db "System Settings", 0
start:
pcall(getLcdLock)
pcall(getKeypadLock)
... | #include "kernel.inc"
#include "corelib.inc"
.db "KEXC"
.db KEXC_ENTRY_POINT
.dw start
.db KEXC_STACK_SIZE
.dw 20
.db KEXC_KERNEL_VER
.db 0, 6
.db KEXC_NAME
.dw name
.db KEXC_HEADER_END
name:
.db "System Settings", 0
start:
pcall(getLcdLock)
pcall(getKeypadLock)
... |
218bafdc97530be5dacb0f5078c1b9e7b764899f | Correctly handle month lengths when switching month/year | Correctly handle month lengths when switching month/year
When you switch to a shorter month now, the selected day is adjusted for that.
| KnightOS/settings | datetime.asm | mit | 1,421,179,517 | setDateTime:
; get the current time (for the default value)
; as in Tue 2014-11-11 15:04:32
; A IX L H B C D
pcall(getTime)
; to test the code path for calculators with no clocks:
;ld a, errUnsupported
cp errUnsupported
kjp(z, unsupported)
kld((current_ye... | setDateTime:
; get the current time (for the default value)
; as in Tue 2014-11-11 15:04:32
; A IX L H B C D
pcall(getTime)
; to test the code path for calculators with no clocks:
;ld a, errUnsupported
cp errUnsupported
kjp(z, unsupported)
kld((current_ye... |
340fff5e09c574af9eee3f71079739f32cfb85cb | Handle lost focus correctly after appWaitKey | Handle lost focus correctly after appWaitKey
| KnightOS/settings | datetime.asm | mit | 1,421,177,906 | setDateTime:
; get the current time (for the default value)
; as in Tue 2014-11-11 15:04:32
; A IX L H B C D
pcall(getTime)
; to test the code path for calculators with no clocks:
;ld a, errUnsupported
cp errUnsupported
kjp(z, unsupported)
kld((current_ye... | setDateTime:
; get the current time (for the default value)
; as in Tue 2014-11-11 15:04:32
; A IX L H B C D
pcall(getTime)
; to test the code path for calculators with no clocks:
;ld a, errUnsupported
cp errUnsupported
kjp(z, unsupported)
kld((current_ye... |
0ae211421a6950cc3e17dfcbb70f5f6cdad182cc | Add handling for leap years | Add handling for leap years
February now correctly has 29 days in leap years.
| KnightOS/settings | datetime.asm | mit | 1,421,173,420 | setDateTime:
; get the current time (for the default value)
; as in Tue 2014-11-11 15:04:32
; A IX L H B C D
pcall(getTime)
; to test the code path for calculators with no clocks:
;ld a, errUnsupported
cp errUnsupported
kjp(z, unsupported)
kld((current_ye... | setDateTime:
; get the current time (for the default value)
; as in Tue 2014-11-11 15:04:32
; A IX L H B C D
pcall(getTime)
; to test the code path for calculators with no clocks:
;ld a, errUnsupported
cp errUnsupported
kjp(z, unsupported)
kld((current_ye... |
b12d03965cd28d07871bcd25a15e7bccbc43dd84 | Add the month length computation | Add the month length computation
The correct month lengths are now used for the wrap-around. One thing that
still has to be done is the leap year computation; right now every year is
taken to not be a leap year.
The functions that do this are generic, and can be moved into the kernel later.
| KnightOS/settings | datetime.asm | mit | 1,421,156,166 | setDateTime:
; get the current time (for the default value)
; as in Tue 2014-11-11 15:04:32
; A IX L H B C D
pcall(getTime)
; to test the code path for calculators with no clocks:
;ld a, errUnsupported
cp errUnsupported
kjp(z, unsupported)
kld((current_ye... | setDateTime:
; get the current time (for the default value)
; as in Tue 2014-11-11 15:04:32
; A IX L H B C D
pcall(getTime)
; to test the code path for calculators with no clocks:
;ld a, errUnsupported
cp errUnsupported
kjp(z, unsupported)
kld((current_ye... |
bee3d669ed5348cee7f5a9a6ad2cdbdf3fbc1172 | Horizontally center the date/time interface | Horizontally center the date/time interface
Also moved it four pixels down, to put it a bit further away from the text.
| KnightOS/settings | datetime.asm | mit | 1,421,144,465 | setDateTime:
; get the current time (for the default value)
; as in Tue 2014-11-11 15:04:32
; A IX L H B C D
pcall(getTime)
; to test the code path for calculators with no clocks:
;ld a, errUnsupported
cp errUnsupported
kjp(z, unsupported)
kld((current_ye... | setDateTime:
; get the current time (for the default value)
; as in Tue 2014-11-11 15:04:32
; A IX L H B C D
pcall(getTime)
; to test the code path for calculators with no clocks:
;ld a, errUnsupported
cp errUnsupported
kjp(z, unsupported)
kld((current_ye... |
237556f9ea28f529aeff068b586e93becccdbbb2 | Add bounds checking for the selected field | Add bounds checking for the selected field
| KnightOS/settings | datetime.asm | mit | 1,419,937,375 | setDateTime:
; get the current time (for the default value)
; as in Tue 2014-11-11 15:04:32
; A IX L H B C D
pcall(getTime)
; to test the code path for calculators with no clocks:
;ld a, errUnsupported
cp errUnsupported
kjp(z, unsupported)
kld((current_ye... | setDateTime:
; get the current time (for the default value)
; as in Tue 2014-11-11 15:04:32
; A IX L H B C D
pcall(getTime)
; to test the code path for calculators with no clocks:
;ld a, errUnsupported
cp errUnsupported
kjp(z, unsupported)
kld((current_ye... |
c8fcba03f6c109bc80d5863d811859d5529813a1 | Remove current_second, since it is not in the GUI anyway | Remove current_second, since it is not in the GUI anyway
| KnightOS/settings | datetime.asm | mit | 1,419,937,267 | setDateTime:
; get the current time (for the default value)
; as in Tue 2014-11-11 15:04:32
; A IX L H B C D
pcall(getTime)
; to test the code path for calculators with no clocks:
;ld a, errUnsupported
cp errUnsupported
kjp(z, unsupported)
kld((current_ye... | setDateTime:
; get the current time (for the default value)
; as in Tue 2014-11-11 15:04:32
; A IX L H B C D
pcall(getTime)
; to test the code path for calculators with no clocks:
;ld a, errUnsupported
cp errUnsupported
kjp(z, unsupported)
kld((current_ye... |
9d65b3a250ec78cd43678f57efd909c1cde719c3 | Implement modifying the day, hour and minute | Implement modifying the day, hour and minute
At the moment the code assumes that every month has 31 days, which is of course
wrong.
| KnightOS/settings | datetime.asm | mit | 1,419,937,069 | setDateTime:
; get the current time (for the default value)
; as in Tue 2014-11-11 15:04:32
; A IX L H B C D
pcall(getTime)
; to test the code path for calculators with no clocks:
;ld a, errUnsupported
cp errUnsupported
kjp(z, unsupported)
kld((current_ye... | setDateTime:
; get the current time (for the default value)
; as in Tue 2014-11-11 15:04:32
; A IX L H B C D
pcall(getTime)
; to test the code path for calculators with no clocks:
;ld a, errUnsupported
cp errUnsupported
kjp(z, unsupported)
kld((current_ye... |
1e62d8d1325125ad7a877f3c54ec466e7529b395 | Implement decreasing the month and year | Implement decreasing the month and year
| KnightOS/settings | datetime.asm | mit | 1,419,936,285 | setDateTime:
; get the current time (for the default value)
; as in Tue 2014-11-11 15:04:32
; A IX L H B C D
pcall(getTime)
; to test the code path for calculators with no clocks:
;ld a, errUnsupported
cp errUnsupported
kjp(z, unsupported)
kld((current_ye... | setDateTime:
; get the current time (for the default value)
; as in Tue 2014-11-11 15:04:32
; A IX L H B C D
pcall(getTime)
; to test the code path for calculators with no clocks:
;ld a, errUnsupported
cp errUnsupported
kjp(z, unsupported)
kld((current_ye... |
768dc2c716dbefc52278dd8614d784514461eacd | Start implementing changing the clock values | Start implementing changing the clock values
You can now change the year and month (only up, at the moment), and if you
reach month 13, it will be correctly wrapped around.
Actually, there will be lots of code duplication with the calendar app here.
Perhaps it would be good to combine those helper functions in a libr... | KnightOS/settings | datetime.asm | mit | 1,418,591,772 | setDateTime:
; get the current time (for the default value)
; as in Tue 2014-11-11 15:04:32
; A IX L H B C D
pcall(getTime)
; to test the code path for calculators with no clocks:
;ld a, errUnsupported
cp errUnsupported
kjp(z, unsupported)
kld((current_ye... | setDateTime:
; get the current time (for the default value)
; as in Tue 2014-11-11 15:04:32
; A IX L H B C D
pcall(getTime)
; to test the code path for calculators with no clocks:
;ld a, errUnsupported
cp errUnsupported
kjp(z, unsupported)
kld((current_ye... |
004d9bfbdc66e8faeae6ff3591c9465523524ecc | Implement saving the new time to the calculator clock | Implement saving the new time to the calculator clock
Note that this does not work yet since the kernel function convertTimeToTicks
is not implemented currently. If that function is implemented, this should
work.
| KnightOS/settings | datetime.asm | mit | 1,418,589,472 | setDateTime:
; get the current time (for the default value)
; as in Tue 2014-11-11 15:04:32
; A IX L H B C D
pcall(getTime)
; to test the code path for calculators with no clocks:
;ld a, errUnsupported
cp errUnsupported
kjp(z, unsupported)
kld((current_ye... | setDateTime:
; get the current time (for the default value)
; as in Tue 2014-11-11 15:04:32
; A IX L H B C D
pcall(getTime)
; to test the code path for calculators with no clocks:
;ld a, errUnsupported
cp errUnsupported
kjp(z, unsupported)
kld((current_ye... |
b6edf9f6e2eeead3128c2cae815983f1cee20738 | The cursor can now be moved from the year field to the other fields | The cursor can now be moved from the year field to the other fields
| KnightOS/settings | datetime.asm | mit | 1,418,589,088 | setDateTime:
; get the current time (for the default value)
; as in Tue 2014-11-11 15:04:32
; A IX L H B C D
pcall(getTime)
; to test the code path for calculators with no clocks:
;ld a, errUnsupported
cp errUnsupported
kjp(z, unsupported)
kld((current_ye... | setDateTime:
; get the current time (for the default value)
; as in Tue 2014-11-11 15:04:32
; A IX L H B C D
pcall(getTime)
; to test the code path for calculators with no clocks:
;ld a, errUnsupported
cp errUnsupported
kjp(z, unsupported)
kld((current_ye... |
a10dd7c42ca2be9d6b6b396a57403187dccbb8d1 | Add instruction message | Add instruction message
Also did some renaming of variables to make them clearer, and inserted a variable to hold the currently selected field.
| KnightOS/settings | datetime.asm | mit | 1,418,588,359 | setDateTime:
; get the current time (for the default value)
; as in Tue 2014-11-11 15:04:32
; A IX L H B C D
pcall(getTime)
; to test the code path for calculators with no clocks:
;ld a, errUnsupported
cp errUnsupported
kjp(z, unsupported)
kld((current_ye... | setDateTime:
; get the current time (for the default value)
; as in Tue 2014-11-11 15:04:32
; A IX L H B C D
pcall(getTime)
; to test the code path for calculators with no clocks:
;ld a, errUnsupported
cp errUnsupported
kjp(z, unsupported)
kld((selected_y... |
d85e430c16426d8dbf074082154820556d66511b | Add a window and a Back option | Add a window and a Back option
The next step is to fill the window with content...
| KnightOS/settings | main.asm | mit | 1,418,583,795 | #include "kernel.inc"
#include "corelib.inc"
.db "KEXC"
.db KEXC_ENTRY_POINT
.dw start
.db KEXC_STACK_SIZE
.dw 20
.db KEXC_KERNEL_VER
.db 0, 6
.db KEXC_NAME
.dw name
.db KEXC_HEADER_END
name:
.db "System Settings", 0
start:
pcall(getLcdLock)
pcall(getKeypadLock)
... | #include "kernel.inc"
#include "corelib.inc"
.db "KEXC"
.db KEXC_ENTRY_POINT
.dw start
.db KEXC_STACK_SIZE
.dw 20
.db KEXC_KERNEL_VER
.db 0, 6
.db KEXC_NAME
.dw name
.db KEXC_HEADER_END
name:
.db "System Settings", 0
start:
pcall(getLcdLock)
pcall(getKeypadLock)
... |
43af1eccfa2fd5fc4bb21d5d2fce20740b189368 | Add a "Set date/time" option | Add a "Set date/time" option
At the moment it does not do anything yet.
| KnightOS/settings | main.asm | mit | 1,418,583,422 | #include "kernel.inc"
#include "corelib.inc"
.db "KEXC"
.db KEXC_ENTRY_POINT
.dw start
.db KEXC_STACK_SIZE
.dw 20
.db KEXC_KERNEL_VER
.db 0, 6
.db KEXC_NAME
.dw name
.db KEXC_HEADER_END
name:
.db "System Settings", 0
start:
pcall(getLcdLock)
pcall(getKeypadLock)
... | #include "kernel.inc"
#include "corelib.inc"
.db "KEXC"
.db KEXC_ENTRY_POINT
.dw start
.db KEXC_STACK_SIZE
.dw 20
.db KEXC_KERNEL_VER
.db 0, 6
.db KEXC_NAME
.dw name
.db KEXC_HEADER_END
name:
.db "System Settings", 0
start:
pcall(getLcdLock)
pcall(getKeypadLock)
... |
775570c3eb00c1ee03dfba4f5cb7e2bd491a7205 | Fix small alignment bug | Fix small alignment bug
"System info" was printed one pixel too far to the left. | KnightOS/settings | main.asm | mit | 1,418,583,260 | #include "kernel.inc"
#include "corelib.inc"
.db "KEXC"
.db KEXC_ENTRY_POINT
.dw start
.db KEXC_STACK_SIZE
.dw 20
.db KEXC_KERNEL_VER
.db 0, 6
.db KEXC_NAME
.dw name
.db KEXC_HEADER_END
name:
.db "System Settings", 0
start:
pcall(getLcdLock)
pcall(getKeypadLock)
... | #include "kernel.inc"
#include "corelib.inc"
.db "KEXC"
.db KEXC_ENTRY_POINT
.dw start
.db KEXC_STACK_SIZE
.dw 20
.db KEXC_KERNEL_VER
.db 0, 6
.db KEXC_NAME
.dw name
.db KEXC_HEADER_END
name:
.db "System Settings", 0
start:
pcall(getLcdLock)
pcall(getKeypadLock)
... |
f04861597061f22f5ce027edb0a18577441201cc | Rewrite field assembly to match the C version | Rewrite field assembly to match the C version
| jonasschnelli/secp256k1,libbitcoin/secp256k1,voisine/secp256k1,jonasschnelli/secp256k1,apoelstra/secp256k1,Gustav-Simonsson/secp256k1,afk11/secp256k1,instagibbs/secp256k1,bitcoin-core/secp256k1,voisine/secp256k1,cddjr/BitcoinUnlimited,digitalbitbox/secp256k1,bitcoin/secp256k1,Gustav-Simonsson/secp256k1,pmienk/secp256k1... | src/field_5x52_asm.asm | mit | 1,417,697,169 | ;; Copyright (c) 2013-2014 Diederik Huys, Pieter Wuille
;; Distributed under the MIT software license, see the accompanying
;; file COPYING or http://www.opensource.org/licenses/mit-license.php.
;; Changelog:
;; * March 2013, Diederik Huys: Original version
;; * November 2014, Pieter Wuille: Updated to use Peter... | ;; Added by Diederik Huys, March 2013
;;
;; Provided public procedures:
;; secp256k1_fe_mul_inner
;; secp256k1_fe_sqr_inner
;;
;; Needed tools: YASM (http://yasm.tortall.net)
;;
;;
BITS 64
%ifidn __OUTPUT_FORMAT__,macho64
%define SYM(x) _ %+ x
%else
%define SYM(x) x
%endif
;; Procedure ExSetMult
;;... |
372f2477131ba51c91be8b40a36b4e79297e5d01 | Xorg: fix for cpuid | Xorg: fix for cpuid
| Osirium/xrdp,ubuntu-xrdp/xrdp,jsorg71/xrdp,proski/xrdp,cocoon/xrdp,PKRoma/xrdp,ubuntu-xrdp/xrdp,lmcro/xrdp,cocoon/xrdp,itamarjp/xrdp,srekcah/xrdp,moobyfr/xrdp,moobyfr/xrdp,proski/xrdp,pecoco/xrdp,PKRoma/xrdp,srekcah/xrdp,gkralik/xrdp,gkralik/xrdp,Osirium/xrdp,pecoco/xrdp,Bllacky/xrdp,jsorg71/xrdp,srekcah/xrdp,metalefty... | xorg/server/module/x86/cpuid_x86.asm | apache-2.0 | 1,412,044,419 |
SECTION .text
%macro PROC 1
align 16
global %1
%1:
%endmacro
;int
;cpuid_x86(int eax_in, int ecx_in, int *eax, int *ebx, int *ecx, int *edx)
PROC cpuid_x86
; save registers
push ebx
push ecx
push edx
push edi
; cpuid
mov eax, [esp + 20]
mov ecx, [esp + 24]
cpuid
m... |
SECTION .text
%macro PROC 1
align 16
global %1
%1:
%endmacro
;int
;cpuid_x86(int eax_in, int ecx_in, int *eax, int *ebx, int *ecx, int *edx)
PROC cpuid_x86
; save registers
push ebx
push ecx
push edx
; cpuid
mov eax, [esp + 16]
mov ecx, [esp + 20]
cpuid
mov [esp + 24]... |
6f5a70b2426ba89228c2bc7e0c4eabdacf044bee | Xorg: asm i420 | Xorg: asm i420
| ubuntu-xrdp/xrdp,ubuntu-xrdp/xrdp,ubuntu-xrdp/xrdp,RomeroMalaquias/xrdp,gschwind/xrdp,lmcro/xrdp,neutrinolabs/xrdp,lmcro/xrdp,srekcah/xrdp,cocoon/xrdp,lmcro/xrdp,PKRoma/xrdp,proski/xrdp,PKRoma/xrdp,metalefty/xrdp,pecoco/xrdp,gschwind/xrdp,proski/xrdp,srekcah/xrdp,neutrinolabs/xrdp,moobyfr/xrdp,itamarjp/xrdp,moobyfr/xrd... | xorg/server/module/x86/i420_to_rgb32_x86_sse2.asm | apache-2.0 | 1,411,956,361 | ;
;Copyright 2014 Jay Sorg
;
;Permission to use, copy, modify, distribute, and sell this software and its
;documentation for any purpose is hereby granted without fee, provided that
;the above copyright notice appear in all copies and that both that
;copyright notice and this permission notice appear in supporting
;doc... |
%macro PROC 1
align 16
global %1
%1:
%endmacro
;int
;i420_to_rgb32_x86_sse2(unsigned char *yuvs, int width, int height, int *rgbs)
PROC i420_to_rgb32_x86_sse2
push ebx
push esi
push edi
mov eax, 0
pop edi
pop esi
pop ebx
ret
align 16
|
1956bc88e11391f7faa973092270647340b40c5b | Xorg: asm changes | Xorg: asm changes
| pecoco/xrdp,gkralik/xrdp,jsorg71/xrdp,metalefty/xrdp,proski/xrdp,metalefty/xrdp,PKRoma/xrdp,RomeroMalaquias/xrdp,srekcah/xrdp,PKRoma/xrdp,itamarjp/xrdp,cocoon/xrdp,Osirium/xrdp,Osirium/xrdp,proski/xrdp,gkralik/xrdp,lmcro/xrdp,Osirium/xrdp,moobyfr/xrdp,itamarjp/xrdp,neutrinolabs/xrdp,ubuntu-xrdp/xrdp,ubuntu-xrdp/xrdp,Ro... | xorg/server/module/x86/yv12_to_rgb32_x86_sse2.asm | apache-2.0 | 1,411,936,758 |
; RGB to YUV
; 0.299 0.587 0.114
; -0.14713 -0.28886 0.436
; 0.615 -0.51499 -0.10001
; YUV to RGB
; 1 0 1.13983
; 1 -0.39465 -0.58060
; 1 2.03211 0
; shift left 12
; 4096 0 4669
; 4096 -1616 -2378
; 4096 9324 0
SECTION .data
align 16
c128 ... |
SECTION .data
align 16
c8 times 4 dd 8
c16 times 4 dd 16
c100 times 4 dd 100
c128 times 4 dd 128
c208 times 4 dd 208
c255 times 4 dd 255
c298 times 4 dd 298
c409 times 4 dd 409
c516 times 4 dd 516
SECTION .text
%macro PROC 1
align 16
global %1
%1:
%endmacro
y1_do4:
; y
movd xmm0, [esi] ; 4 a... |
8b400ca0f3c8cf083dddb4794c682dda45c755ad | Xorg: asm changes | Xorg: asm changes
| gschwind/xrdp,metalefty/xrdp,RomeroMalaquias/xrdp,neutrinolabs/xrdp,proski/xrdp,lmcro/xrdp,srekcah/xrdp,jsorg71/xrdp,moobyfr/xrdp,moobyfr/xrdp,itamarjp/xrdp,jsorg71/xrdp,ubuntu-xrdp/xrdp,pecoco/xrdp,neutrinolabs/xrdp,moobyfr/xrdp,Osirium/xrdp,itamarjp/xrdp,neutrinolabs/xrdp,PKRoma/xrdp,proski/xrdp,gschwind/xrdp,Osirium... | xorg/server/module/x86/yv12_to_rgb32_x86_sse2.asm | apache-2.0 | 1,411,850,048 |
SECTION .data
align 16
c8 times 4 dd 8
c16 times 4 dd 16
c100 times 4 dd 100
c128 times 4 dd 128
c208 times 4 dd 208
c255 times 4 dd 255
c298 times 4 dd 298
c409 times 4 dd 409
c516 times 4 dd 516
SECTION .text
%macro PROC 1
align 16
global %1
%1:
%endmacro
y1_do4:
; y
movd xmm0, [esi] ; 4 a... |
SECTION .data
align 16
c16 times 4 dd 16
c100 times 4 dd 100
c128 times 4 dd 128
c208 times 4 dd 208
c255 times 4 dd 255
c298 times 4 dd 298
c409 times 4 dd 409
c516 times 4 dd 516
SECTION .text
%macro PROC 1
align 16
global %1
%1:
%endmacro
y1_do4:
; y
mov eax, 0
mov al, [esi]
add esi, ... |
656e6eae1ffc1d92ca717ca0b9b9928f6a263183 | Xorg: asm work on yv12 | Xorg: asm work on yv12
| gkralik/xrdp,proski/xrdp,moobyfr/xrdp,neutrinolabs/xrdp,ubuntu-xrdp/xrdp,Osirium/xrdp,cocoon/xrdp,moobyfr/xrdp,cocoon/xrdp,PKRoma/xrdp,itamarjp/xrdp,Bllacky/xrdp,itamarjp/xrdp,metalefty/xrdp,gschwind/xrdp,cocoon/xrdp,jsorg71/xrdp,gschwind/xrdp,Osirium/xrdp,moobyfr/xrdp,PKRoma/xrdp,srekcah/xrdp,proski/xrdp,RomeroMalaqui... | xorg/server/module/x86/yv12_to_rgb32_x86_sse2.asm | apache-2.0 | 1,411,727,824 |
SECTION .data
align 16
c16 times 4 dd 16
c100 times 4 dd 100
c128 times 4 dd 128
c208 times 4 dd 208
c255 times 4 dd 255
c298 times 4 dd 298
c409 times 4 dd 409
c516 times 4 dd 516
SECTION .text
%macro PROC 1
align 16
global %1
%1:
%endmacro
y1_do4:
; y
mov eax, 0
mov al, [esi]
add esi, ... |
%macro PROC 1
align 16
global %1
%1:
%endmacro
;int
;yv12_to_rgb32_x86_sse2(unsigned char *yuvs, int width, int height, int *rgbs)
PROC yv12_to_rgb32_x86_sse2
push ebx
push esi
push edi
mov eax, 0
pop edi
pop esi
pop ebx
ret
align 16
|
0804e180e79f85392659e4f52bb808708dda7746 | Added rfid.h reference in clock management file | Added rfid.h reference in clock management file
| BastiaanGrisel/wisp5,martijnvandermarel/wisp5,martijnvandermarel/wisp5,mchesser/wisp5,ivarveen/wisp5,wisp/wisp5,mchesser/wisp5,BastiaanGrisel/wisp5,mchesser/wisp5,ivarveen/wisp5,mchesser/wisp5,martijnvandermarel/wisp5,BastiaanGrisel/wisp5,BastiaanGrisel/wisp5,wisp/wisp5,ivarveen/wisp5,martijnvandermarel/wisp5,wisp/wisp... | CCS/wisp-base/RFID/Clocking.asm | bsd-2-clause | 1,409,339,552 | ;/**@file Clocking.asm
;* @brief Sets the proper clocks for Tx and Rx
;*
;* @author Saman Naderiparizi, UW Sensor Systems Lab
;* @created 3-10-14
;*
;*
;* @section Command Handles
;* -#TxClock , RxClock
;*/
;/INCLUDES------------------------------------------------------------------------------------------------... | ;/**@file Clocking.asm
;* @brief Sets the proper clocks for Tx and Rx
;*
;* @author Saman Naderiparizi, UW Sensor Systems Lab
;* @created 3-10-14
;*
;*
;* @section Command Handles
;* -#TxClock , RxClock
;*/
;/INCLUDES------------------------------------------------------------------------------------------------... |
da1b053ccb5d976fcd07018d7539c293e4a263bf | Fixed bug where divHLbyC overwrites B | Fixed bug where divHLbyC overwrites B
| calcdude84se/knightos-kernel,unlimitedbacon/kernel,KnightOS/kernel,KnightOS/kernel,unlimitedbacon/kernel,calcdude84se/knightos-kernel | src/00/math.asm | mit | 1,409,095,294 | ;; cpHLDE [Maths]
;; Compares HL to DE.
;; Output:
;; Same as z80 CP instruction.
cpHLDE:
or a
sbc hl, de
add hl,de
ret
;; cpHLBC [Maths]
;; Compares HL to BC.
;; Output:
;; Same as z80 CP instruction.
cpHLBC:
or a
sbc hl, bc
add hl,bc
ret
;; cpBCDE [Maths]
;; Compares DE to BC.
;; ... | ;; cpHLDE [Maths]
;; Compares HL to DE.
;; Output:
;; Same as z80 CP instruction.
cpHLDE:
or a
sbc hl, de
add hl,de
ret
;; cpHLBC [Maths]
;; Compares HL to BC.
;; Output:
;; Same as z80 CP instruction.
cpHLBC:
or a
sbc hl, bc
add hl,bc
ret
;; cpBCDE [Maths]
;; Compares DE to BC.
;; ... |
9819a72f92c67c1efb4396b97b23f8f40ae5c214 | Fixed measureChar for values < 0x20 | Fixed measureChar for values < 0x20
| unlimitedbacon/kernel,calcdude84se/knightos-kernel,calcdude84se/knightos-kernel,KnightOS/kernel,unlimitedbacon/kernel,KnightOS/kernel | src/01/text.asm | mit | 1,409,095,221 | ; Text functions for kernel
;; newline [Text]
;; Advances D, E to the next line of text
;; Inputs:
;; D, E: X, Y
;; B: Left margin
;; Outputs:
;; D, E: Moved down one line and to the left margin
;; Notes:
;; This is identical to (but faster than) calling drawChar with '\n'
newline:
push af
ld a, e
... | ; Text functions for kernel
;; newline [Text]
;; Advances D, E to the next line of text
;; Inputs:
;; D, E: X, Y
;; B: Left margin
;; Outputs:
;; D, E: Moved down one line and to the left margin
;; Notes:
;; This is identical to (but faster than) calling drawChar with '\n'
newline:
push af
ld a, e
... |
913bcdd5baaa76e4a04bc747944acf4f3e7adc37 | Replaced spaces with tabs | Replaced spaces with tabs
| unlimitedbacon/kernel,calcdude84se/knightos-kernel,unlimitedbacon/kernel,KnightOS/kernel,KnightOS/kernel,calcdude84se/knightos-kernel | src/01/text.asm | mit | 1,408,579,842 | ; Text functions for kernel
;; newline [Text]
;; Advances D, E to the next line of text
;; Inputs:
;; D, E: X, Y
;; B: Left margin
;; Outputs:
;; D, E: Moved down one line and to the left margin
;; Notes:
;; This is identical to (but faster than) calling drawChar with '\n'
newline:
push af
ld a, e
... | ; Text functions for kernel
;; newline [Text]
;; Advances D, E to the next line of text
;; Inputs:
;; D, E: X, Y
;; B: Left margin
;; Outputs:
;; D, E: Moved down one line and to the left margin
;; Notes:
;; This is identical to (but faster than) calling drawChar with '\n'
newline:
push af
ld a, e
... |
019f24310359e5fc8aba203d9915a4b785379481 | samples / New Zealand Story crack: Remove unused asm. | samples / New Zealand Story crack: Remove unused asm.
| keirf/Disk-Utilities,keirf/Disk-Utilities | samples/cracks/nzs/nzs.asm | unlicense | 1,407,007,239 | SSP equ $80000
USP equ $7fc00
CODE equ $7e000
start:
; Initialise custom chips
lea.l ($dff000).l,a6
move.w #$7fff,d0
move.w d0,$9a(a6) ; intena = 0
move.w d0,$9c(a6) ; intreq = 0
move.w d0,$96(a6) ; dmacon = 0
move.w #$8200,$96(a6... | SSP equ $80000
USP equ $7fc00
CODE equ $7e000
start:
; Initialise custom chips
lea.l ($dff000).l,a6
move.w #$7fff,d0
move.w d0,$9a(a6) ; intena = 0
move.w d0,$9c(a6) ; intreq = 0
move.w d0,$96(a6) ; dmacon = 0
move.w #$8200,$96(a6... |
5d1e1ade30ae900e37e14aa2196f68b88f911d55 | 4k paging, first 4gb | 4k paging, first 4gb
| Izikiel/intel_multicore,svilerino/intel_multicore,svilerino/intel_multicore,Izikiel/intel_multicore,Izikiel/intel_multicore,Izikiel/intel_multicore,Izikiel/intel_multicore,svilerino/intel_multicore,svilerino/intel_multicore,svilerino/intel_multicore | DeliriOS_64bits/bsp_code/kernel.asm | mit | 1,402,411,894 | %include "../macros/asm_screen_utils.mac"
global protected_mode
;; GDT
extern GDT_DESC
;; IDT
extern IDT_DESC
extern idt_inicializar
;; STACK
extern kernelStackPtrBSP
extern core_stack_ptrs
;; PIC
extern deshabilitar_pic
extern resetear_pic
extern habilitar_pic
;;paginacion
extern krnPML4T
extern krnPDPT
extern k... | %include "../macros/asm_screen_utils.mac"
global protected_mode
;; GDT
extern GDT_DESC
;; IDT
extern IDT_DESC
extern idt_inicializar
;; STACK
extern kernelStackPtrBSP
extern core_stack_ptrs
;; PIC
extern deshabilitar_pic
extern resetear_pic
extern habilitar_pic
;;paginacion
extern krnPML4T
extern krnPDPT
extern k... |
57eaf5ade4628e3972834ae01e3f685cbd513931 | Fixed a screwup | Fixed a screwup
| calcdude84se/knightos-kernel,unlimitedbacon/kernel,KnightOS/kernel,unlimitedbacon/kernel,calcdude84se/knightos-kernel,KnightOS/kernel | src/00/math.asm | mit | 1,401,225,525 | ;; cpHLDE [Maths]
;; Compares HL to DE.
;; Output:
;; Same as z80 CP instruction.
cpHLDE:
or a
sbc hl, de
add hl,de
ret
;; cpHLBC [Maths]
;; Compares HL to BC.
;; Output:
;; Same as z80 CP instruction.
cpHLBC:
or a
sbc hl, bc
add hl,bc
ret
;; cpBCDE [Maths]
;; Compares DE to BC.
;; ... | ;; cpHLDE [Maths]
;; Compares HL to DE.
;; Output:
;; Same as z80 CP instruction.
cpHLDE:
or a
sbc hl, de
add hl,de
ret
;; cpHLBC [Maths]
;; Compares HL to BC.
;; Output:
;; Same as z80 CP instruction.
cpHLBC:
or a
sbc hl, bc
add hl,bc
ret
;; cpBCDE [Maths]
;; Compares DE to BC.
;; ... |
aad8f3ddd4b78a7533784c73808b58458c254dc2 | Forgot to return | Forgot to return
| unlimitedbacon/kernel,KnightOS/kernel,unlimitedbacon/kernel,calcdude84se/knightos-kernel,KnightOS/kernel,calcdude84se/knightos-kernel | src/00/math.asm | mit | 1,401,223,061 | ;; cpHLDE [Maths]
;; Compares HL to DE.
;; Output:
;; Same as z80 CP instruction.
cpHLDE:
or a
sbc hl, de
add hl,de
ret
;; cpHLBC [Maths]
;; Compares HL to BC.
;; Output:
;; Same as z80 CP instruction.
cpHLBC:
or a
sbc hl, bc
add hl,bc
ret
;; cpBCDE [Maths]
;; Compares DE to BC.
;; ... | ;; cpHLDE [Maths]
;; Compares HL to DE.
;; Output:
;; Same as z80 CP instruction.
cpHLDE:
or a
sbc hl, de
add hl,de
ret
;; cpHLBC [Maths]
;; Compares HL to BC.
;; Output:
;; Same as z80 CP instruction.
cpHLBC:
or a
sbc hl, bc
add hl,bc
ret
;; cpBCDE [Maths]
;; Compares DE to BC.
;; ... |
c9adea91203135497492004522e1fb48edde6132 | Added 8*8, 16*8 and 16*16 multiplication routines. | Added 8*8, 16*8 and 16*16 multiplication routines.
| unlimitedbacon/kernel,calcdude84se/knightos-kernel,KnightOS/kernel,KnightOS/kernel,unlimitedbacon/kernel,calcdude84se/knightos-kernel | src/00/math.asm | mit | 1,401,222,955 | ;; cpHLDE [Maths]
;; Compares HL to DE.
;; Output:
;; Same as z80 CP instruction.
cpHLDE:
or a
sbc hl, de
add hl,de
ret
;; cpHLBC [Maths]
;; Compares HL to BC.
;; Output:
;; Same as z80 CP instruction.
cpHLBC:
or a
sbc hl, bc
add hl,bc
ret
;; cpBCDE [Maths]
;; Compares DE to BC.
;; ... | ;; cpHLDE [Maths]
;; Compares HL to DE.
;; Output:
;; Same as z80 CP instruction.
cpHLDE:
or a
sbc hl, de
add hl,de
ret
;; cpHLBC [Maths]
;; Compares HL to BC.
;; Output:
;; Same as z80 CP instruction.
cpHLBC:
or a
sbc hl, bc
add hl,bc
ret
;; cpBCDE [Maths]
;; Compares DE to BC.
;; ... |
1b963ede33b3f291b87dc026f963fdb254534f4d | Added 8*8, 16*8 and 16*16 multiplication routines. | Added 8*8, 16*8 and 16*16 multiplication routines.
Conflicts:
src/00/math.asm
| KnightOS/kernel,unlimitedbacon/kernel,calcdude84se/knightos-kernel,calcdude84se/knightos-kernel,KnightOS/kernel,unlimitedbacon/kernel | src/00/math.asm | mit | 1,401,222,845 | ;; cpHLDE [Maths]
;; Compares HL to DE.
;; Output:
;; Same as z80 CP instruction.
cpHLDE:
or a
sbc hl, de
add hl,de
ret
;; cpHLBC [Maths]
;; Compares HL to BC.
;; Output:
;; Same as z80 CP instruction.
cpHLBC:
or a
sbc hl, bc
add hl,bc
ret
;; cpBCDE [Maths]
;; Compares DE to BC.
;; ... | ;; cpHLDE [Maths]
;; Compares HL to DE.
;; Output:
;; Same as z80 CP instruction.
cpHLDE:
or a
sbc hl, de
add hl,de
ret
;; cpHLBC [Maths]
;; Compares HL to BC.
;; Output:
;; Same as z80 CP instruction.
cpHLBC:
or a
sbc hl, bc
add hl,bc
ret
;; cpBCDE [Maths]
;; Compares DE to BC.
;; ... |
ef56fbddad84473ddd98e75c2d3de5f6458b9165 | Fixed "bytes remaining" for page 1 | Fixed "bytes remaining" for page 1
| unlimitedbacon/kernel,calcdude84se/knightos-kernel,KnightOS/kernel,calcdude84se/knightos-kernel,unlimitedbacon/kernel,KnightOS/kernel | src/01/base.asm | mit | 1,401,215,613 | #include "platforms.inc"
#include "defines.inc"
#include "keys.inc"
#include "00.sym"
#include "constants.asm"
.org 0x4000
#include "text.asm"
#include "font.asm"
.echo "Bytes remaining on page 01: {0}" 0x8000-$
| #include "platforms.inc"
#include "defines.inc"
#include "keys.inc"
#include "00.sym"
#include "constants.asm"
.org 0x4000
#include "text.asm"
#include "font.asm"
.echo "Bytes remaining on page 02: {0}" 0x8000-$
|
ca653fe8ace91c0e397037463287dff434990b70 | just load sp directly rather than going through ax/eax | just load sp directly rather than going through ax/eax
| tempbottle/rustboot,charliesome/rustboot,tempbottle/rustboot,charliesome/rustboot,YangFan789/fanmi-os,thesam/rOSt,thesam/rOSt,YangFan789/fanmi-os,smkell/rustboot,thesam/rOSt,smkell/rustboot,tempbottle/rustboot,charliesome/rustboot,smkell/rustboot | loader.asm | mit | 1,398,001,532 | use16
org 0x7c00
boot:
; initialize segment registers
xor ax, ax
mov ds, ax
mov es, ax
mov ss, ax
; initialize stack
mov sp, 0x7bfe
; load rust code into 0x7e00 so we can jump to it later
mov ah, 2 ; read
mov al, 24 ; 24 sectors (12 KiB)
mov ch, 0 ; cylinde... | use16
org 0x7c00
boot:
; initialize segment registers
xor ax, ax
mov ds, ax
mov es, ax
mov ss, ax
; initialize stack
mov ax, 0x7bfe
mov sp, ax
; load rust code into 0x7e00 so we can jump to it later
mov ah, 2 ; read
mov al, 24 ; 24 sectors (12 KiB)
mov ch, 0 ... |
50aa013a1a040140eda778d5dd174422303dd4d7 | word align initial real mode stack pointer | word align initial real mode stack pointer
thanks for pointing this out @pczarn!
| tempbottle/rustboot,charliesome/rustboot,thesam/rOSt,tempbottle/rustboot,thesam/rOSt,thesam/rOSt,smkell/rustboot,YangFan789/fanmi-os,YangFan789/fanmi-os,charliesome/rustboot,smkell/rustboot,smkell/rustboot,tempbottle/rustboot,charliesome/rustboot | loader.asm | mit | 1,398,001,254 | use16
org 0x7c00
boot:
; initialize segment registers
xor ax, ax
mov ds, ax
mov es, ax
mov ss, ax
; initialize stack
mov ax, 0x7bfe
mov sp, ax
; load rust code into 0x7e00 so we can jump to it later
mov ah, 2 ; read
mov al, 24 ; 24 sectors (12 KiB)
mov ch, 0 ... | use16
org 0x7c00
boot:
; initialize segment registers
xor ax, ax
mov ds, ax
mov es, ax
mov ss, ax
; initialize stack
mov ax, 0x7bff
mov sp, ax
; load rust code into 0x7e00 so we can jump to it later
mov ah, 2 ; read
mov al, 24 ; 24 sectors (12 KiB)
mov ch, 0 ... |
fb0a59cc9f638d8cbd42e141c3a5bd9080fc4564 | Moved math routines out of util.asm | Moved math routines out of util.asm
| calcdude84se/knightos-kernel,KnightOS/kernel,unlimitedbacon/kernel,KnightOS/kernel,calcdude84se/knightos-kernel,unlimitedbacon/kernel | src/00/util.asm | mit | 1,394,367,167 | ;; suspendDevice [System]
;; Turns off the screen, enters low power mode, and halts system operation until the ON key is pressed.
suspendDevice:
ld a, i
push af
#ifdef COLOR
push hl
push bc
call checkLegacyLcdMode
ld b, 0
jr nz, _
call resetLegacyLcdMode
inc b
_:
push bc
ca... | ;; suspendDevice [System]
;; Turns off the screen, enters low power mode, and halts system operation until the ON key is pressed.
suspendDevice:
ld a, i
push af
#ifdef COLOR
push hl
push bc
call checkLegacyLcdMode
ld b, 0
jr nz, _
call resetLegacyLcdMode
inc b
_:
push bc
ca... |
1def3971903865efbd6d1b08905c8765e52467c1 | Fixed documentation of drawStr routines | Fixed documentation of drawStr routines | unlimitedbacon/kernel,KnightOS/kernel,calcdude84se/knightos-kernel,calcdude84se/knightos-kernel,KnightOS/kernel,unlimitedbacon/kernel | src/00/text.asm | mit | 1,391,090,376 | ; Text functions for kernel
;; newline [Text]
;; Advances D, E to the next line of text
;; Inputs:
;; D, E: X, Y
;; B: Left margin
;; Outputs:
;; D, E: Moved down one line and to the left margin
;; Notes:
;; This is identical to (but faster than) calling drawChar with '\n'
newline:
push af
ld a, e
... | ; Text functions for kernel
;; newline [Text]
;; Advances D, E to the next line of text
;; Inputs:
;; D, E: X, Y
;; B: Left margin
;; Outputs:
;; D, E: Moved down one line and to the left margin
;; Notes:
;; This is identical to (but faster than) calling drawChar with '\n'
newline:
push af
ld a, e
... |
0f3f5f1954f53b4b877a65a5514fa393f5c2abb6 | Optimized 4 bytes in drawHexA, 1 in drawStrXOR | Optimized 4 bytes in drawHexA, 1 in drawStrXOR | unlimitedbacon/kernel,calcdude84se/knightos-kernel,unlimitedbacon/kernel,KnightOS/kernel,KnightOS/kernel,calcdude84se/knightos-kernel | src/00/text.asm | mit | 1,391,089,549 | ; Text functions for kernel
;; newline [Text]
;; Advances D, E to the next line of text
;; Inputs:
;; D, E: X, Y
;; B: Left margin
;; Outputs:
;; D, E: Moved down one line and to the left margin
;; Notes:
;; This is identical to (but faster than) calling drawChar with '\n'
newline:
push af
ld a, e
... | ; Text functions for kernel
;; newline [Text]
;; Advances D, E to the next line of text
;; Inputs:
;; D, E: X, Y
;; B: Left margin
;; Outputs:
;; D, E: Moved down one line and to the left margin
;; Notes:
;; This is identical to (but faster than) calling drawChar with '\n'
newline:
push af
ld a, e
... |
8d2d09c083141e984834e16009b350ada8324715 | Deduplicated drawChar routines, optimized 94 bytes | Deduplicated drawChar routines, optimized 94 bytes
drawChar, drawCharAND and drawCharXOR now uses drawhCharShared with mode passed in ixl. | KnightOS/kernel,unlimitedbacon/kernel,unlimitedbacon/kernel,calcdude84se/knightos-kernel,calcdude84se/knightos-kernel,KnightOS/kernel | src/00/text.asm | mit | 1,391,085,956 | ; Text functions for kernel
;; newline [Text]
;; Advances D, E to the next line of text
;; Inputs:
;; D, E: X, Y
;; B: Left margin
;; Outputs:
;; D, E: Moved down one line and to the left margin
;; Notes:
;; This is identical to (but faster than) calling drawChar with '\n'
newline:
push af
ld a, e
... | ; Text functions for kernel
;; newline [Text]
;; Advances D, E to the next line of text
;; Inputs:
;; D, E: X, Y
;; B: Left margin
;; Outputs:
;; D, E: Moved down one line and to the left margin
;; Notes:
;; This is identical to (but faster than) calling drawChar with '\n'
newline:
push af
ld a, e
... |
30c59a84eb3e602e55b1fe178480e957802d61af | Added carriage return support in text.asm | Added carriage return support in text.asm | unlimitedbacon/kernel,calcdude84se/knightos-kernel,KnightOS/kernel,KnightOS/kernel,unlimitedbacon/kernel,calcdude84se/knightos-kernel | src/00/text.asm | mit | 1,390,831,397 | ; Text functions for kernel
;; newline [Text]
;; Advances D, E to the next line of text
;; Inputs:
;; D, E: X, Y
;; B: Left margin
;; Outputs:
;; D, E: Moved down one line and to the left margin
;; Notes:
;; This is identical to (but faster than) calling drawChar with '\n'
newline:
push af
ld a, e
... | ; Text functions for kernel
;; newline [Text]
;; Advances D, E to the next line of text
;; Inputs:
;; D, E: X, Y
;; B: Left margin
;; Outputs:
;; D, E: Moved down one line and to the left margin
;; Notes:
;; This is identical to (but faster than) calling drawChar with '\n'
newline:
push af
ld a, e
... |
8583e13e3419e17917e62d69ab4ab5ccf9172bff | Clear the executable bit on source files | Clear the executable bit on source files
| nathankidd/openh264,GuangweiWang/openh264,bitwing/losslessh264,froggatt/losslessh264,LaurenLuoYun/losslessh264,ethanhugg/openh264,rzhangma/openh264,fstd/openh264,hznoob/openh264,jasonzhong/losslessh264,hanchl/losslessh264,xkfz007/openh264,BelledonneCommunications/openh264,noname007/losslessh264,hgl888/losslessh264,frog... | codec/processing/src/asm/vaa.asm | bsd-2-clause | 1,390,462,250 | ;*!
;* \copy
;* Copyright (c) 2010-2013, Cisco Systems
;* All rights reserved.
;*
;* Redistribution and use in source and binary forms, with or without
;* modification, are permitted provided that the following conditions
;* are met:
;*
;* * Redistributions of source code must retain the abo... | ;*!
;* \copy
;* Copyright (c) 2010-2013, Cisco Systems
;* All rights reserved.
;*
;* Redistribution and use in source and binary forms, with or without
;* modification, are permitted provided that the following conditions
;* are met:
;*
;* * Redistributions of source code must retain the abo... |
f2c756992598ba5f34962b2fa683d84738d72aef | VGA 15.7kHz update | VGA 15.7kHz update
| reenigne/reenigne,reenigne/reenigne,reenigne/reenigne,reenigne/reenigne | vga_157/vga_157.asm | unlicense | 1,390,211,968 | org 0x100
cpu 8086
jmp loader
newInt10:
cmp ax,0x13
jne notMode13
pushf
call far[cs:oldInt10]
mov dx,0x03d4
mov ax,0x0100
out dx,ax ; Reset sequencer
mov ax,0x0901
out dx,ax ; Set double pixel width
mov dl,0xc2
mov al,0x27
out dx,al ; Set 28.322 MHz clock, polarity for ... | org 0x100
cpu 8086
jmp loader
newInt10:
cmp ax,0x13
jne notMode13
pushf
call far[cs:oldInt10]
mov dx,0x03d4
mov ax,0x0100
out dx,ax ; Reset sequencer
mov ax,0x0901
out dx,ax ; Set double pixel width
mov dl,0xc2
mov al,0x27
out dx,al ; Set 28.322 MHz clock, polarity for ... |
e703fd1d37b3b59630e420bf990f219c5cbb04cc | Disabled interrupts in deleteFile | Disabled interrupts in deleteFile
| calcdude84se/knightos-kernel,calcdude84se/knightos-kernel,KnightOS/kernel,KnightOS/kernel,unlimitedbacon/kernel,unlimitedbacon/kernel | src/00/filesystem.asm | mit | 1,390,128,665 | ;; deleteFile [Filesystem]
;; Deletes a file.
;; Inputs:
;; DE: Path to file (string pointer)
;; Outputs:
;; Z: Set if file was deleted, reset if file did not exist
; TODO: Use a proper error code
deleteFile:
push hl
push af
call findFileEntry
jr nz, ++_
; Delete file
push bc
... | ;; deleteFile [Filesystem]
;; Deletes a file.
;; Inputs:
;; DE: Path to file (string pointer)
;; Outputs:
;; Z: Set if file was deleted, reset if file did not exist
; TODO: Use a proper error code
deleteFile:
push hl
push af
call findFileEntry
jr nz, ++_
; Delete file
push bc
... |
30cdc95d770652730d6720fe667ffe970c654da0 | Minor formatting fix | Minor formatting fix
| unlimitedbacon/kernel,calcdude84se/knightos-kernel,KnightOS/kernel,KnightOS/kernel,calcdude84se/knightos-kernel,unlimitedbacon/kernel | src/00/thread.asm | mit | 1,390,082,328 | ; Returns the ID of the thread that will launch next
getNextThreadID:
push hl ; Don't care about the data getThreadEntry provides
push bc
ld a, (lastThreadId)
_: inc a
and threadRangeMask
ld b, a ; Don't want the error getThreadEntry provides
call get... | ; Returns the ID of the thread that will launch next
getNextThreadID:
push hl ; Don't care about the data getThreadEntry provides
push bc
ld a, (lastThreadId)
_: inc a
and threadRangeMask
ld b, a ; Don't want the error getThreadEntry provides
call get... |
b479aeb99ede5ac6e53b9755d91509349a9dd634 | x86: remove old assembly code | x86: remove old assembly code
| pczarn/rustboot,alexchandel/rustboot,perlun/rustboot,alexchandel/rustboot,perlun/rustboot,pczarn/rustboot | arch/x86/boot/loader.asm | mit | 1,390,058,850 | global __morestack
global abort
global memcmp
global memcpy
global malloc
global free
global start
extern main
section .boot
use16
; entry point
start:
; initialize segment registers
xor ax, ax
mov ds, ax
mov es, ax
; load Rust code into 0x10000...0x1ffff so we can jump to it later
mov si, 2... | global __morestack
global abort
global memcmp
global memcpy
global malloc
global free
global start
extern main
section .boot
use16
; entry point
start:
; initialize segment registers
xor ax, ax
mov ds, ax
mov es, ax
; load Rust code into 0x10000...0x1ffff so we can jump to it later
mov si, 2... |
e9c3279bb8aad74b03e698e4829655dafc5d8d3a | Manual paging -> macro in populateStreamBuffer | Manual paging -> macro in populateStreamBuffer
| KnightOS/kernel,calcdude84se/knightos-kernel,calcdude84se/knightos-kernel,unlimitedbacon/kernel,KnightOS/kernel,unlimitedbacon/kernel | src/00/filestreams.asm | mit | 1,390,021,427 | ;; openFileRead [File Stream]
;; Opens a file stream in read-only mode.
;; Inputs:
;; DE: Path to file (string pointer)
;; Outputs:
;; Z: Set on success, reset on failure
;; A: Error code (on failure)
;; D: File stream ID (on success)
;; E: Garbage (on success)
openFileRead:
push hl
push bc
call f... | ;; openFileRead [File Stream]
;; Opens a file stream in read-only mode.
;; Inputs:
;; DE: Path to file (string pointer)
;; Outputs:
;; Z: Set on success, reset on failure
;; A: Error code (on failure)
;; D: File stream ID (on success)
;; E: Garbage (on success)
openFileRead:
push hl
push bc
call f... |
4f4907bfc6f191e22ab36a2315a83c9cf1bb2740 | Update filestreams to use paging macros | Update filestreams to use paging macros
| KnightOS/kernel,unlimitedbacon/kernel,calcdude84se/knightos-kernel,unlimitedbacon/kernel,calcdude84se/knightos-kernel,KnightOS/kernel | src/00/filestreams.asm | mit | 1,389,953,349 | ;; openFileRead [File Stream]
;; Opens a file stream in read-only mode.
;; Inputs:
;; DE: Path to file (string pointer)
;; Outputs:
;; Z: Set on success, reset on failure
;; A: Error code (on failure)
;; D: File stream ID (on success)
;; E: Garbage (on success)
openFileRead:
push hl
push bc
call f... | ;; openFileRead [File Stream]
;; Opens a file stream in read-only mode.
;; Inputs:
;; DE: Path to file (string pointer)
;; Outputs:
;; Z: Set on success, reset on failure
;; A: Error code (on failure)
;; D: File stream ID (on success)
;; E: Garbage (on success)
openFileRead:
push hl
push bc
call f... |
a78f1b265048e9eb30bad8b45412834b3adb74c4 | win64: Use rsp instead of esp | win64: Use rsp instead of esp
Using esp works by coincidence as long as the stack pointer is
within the first 4 GB of the address space - which seems to work
as long as the test binary is built with /dynamicbase:no, but breaks
if this option is removed.
| legendtkl/losslessh264,treble37/losslessh264,jasonzhong/losslessh264,GuangweiWang/openh264,hanchl/losslessh264,yurenyong123/losslessh264,kevinzhang1986/losslessh264,zyhh/losslessh264,yurenyong123/losslessh264,GuangweiWang/openh264,Ghimtim/losslessh264,BelledonneCommunications/openh264,SunGuo/losslessh264,shyamalschandr... | codec/common/deblock.asm | bsd-2-clause | 1,389,438,755 | ;*!
;* \copy
;* Copyright (c) 2009-2013, Cisco Systems
;* All rights reserved.
;*
;* Redistribution and use in source and binary forms, with or without
;* modification, are permitted provided that the following conditions
;* are met:
;*
;* * Redistributions of source code must retain the abo... | ;*!
;* \copy
;* Copyright (c) 2009-2013, Cisco Systems
;* All rights reserved.
;*
;* Redistribution and use in source and binary forms, with or without
;* modification, are permitted provided that the following conditions
;* are met:
;*
;* * Redistributions of source code must retain the abo... |
02e4bf6e9d9d836ff817b0e33fd6bf6b476ce738 | fix UNIX64 and WIN64: use ecx as input param | fix UNIX64 and WIN64: use ecx as input param
| SunGuo/losslessh264,8v060htwyc/openh264,shihuade/openh264,ondev/openh264,lioonline/losslessh264,wzup/openh264,SunGuo/losslessh264,abhishekgahlot/losslessh264,nfedera/cisco-openh264,subailong/losslessh264,sunfei/losslessh264,mcanthony/openh264,xkfz007/openh264,hgl888/losslessh264,mazalet/losslessh264,HaiboZhu/openh264,n... | codec/common/cpuid.asm | bsd-2-clause | 1,389,241,873 | ;*!
;* \copy
;* Copyright (c) 2009-2013, Cisco Systems
;* All rights reserved.
;*
;* Redistribution and use in source and binary forms, with or without
;* modification, are permitted provided that the following conditions
;* are met:
;*
;* * Redistributions of source code must retain the abo... | ;*!
;* \copy
;* Copyright (c) 2009-2013, Cisco Systems
;* All rights reserved.
;*
;* Redistribution and use in source and binary forms, with or without
;* modification, are permitted provided that the following conditions
;* are met:
;*
;* * Redistributions of source code must retain the abo... |
44240ce778c3e78f7fe31010031b0a22fbdfe9d5 | Remove the executable bit accidentally set on an asm source file | Remove the executable bit accidentally set on an asm source file
| treble37/losslessh264,alihalabyah/losslessh264,BelledonneCommunications/openh264,yskeem/openh264,zyhh/losslessh264,sunfei/losslessh264,yurenyong123/losslessh264,LaurenLuoYun/losslessh264,nathankidd/openh264,abhishekgahlot/losslessh264,noname007/losslessh264,joncampbell123/losslessh264,mstorsjo/openh264,sijchen/openh264... | codec/common/vaa.asm | bsd-2-clause | 1,388,925,833 | ;*!
;* \copy
;* Copyright (c) 2010-2013, Cisco Systems
;* All rights reserved.
;*
;* Redistribution and use in source and binary forms, with or without
;* modification, are permitted provided that the following conditions
;* are met:
;*
;* * Redistributions of source code must retain the abo... | ;*!
;* \copy
;* Copyright (c) 2010-2013, Cisco Systems
;* All rights reserved.
;*
;* Redistribution and use in source and binary forms, with or without
;* modification, are permitted provided that the following conditions
;* are met:
;*
;* * Redistributions of source code must retain the abo... |
13f40950fbc99eafaccccb25fde3240d3a8143bc | Added extra stuff to test interrupts | Added extra stuff to test interrupts
| 8l/WaveAsm,Meisaka/WaveAsm,Zardoz89/WaveAsm,Meisaka/WaveAsm,Zardoz89/WaveAsm,8l/WaveAsm | test.asm | isc | 1,385,144,040 | begin:
MOV %r0, 1
MOV %r1, 1
MOV %r2, 2
MOV %r3, 3
MOV %r4, 4
MOV %r5, 5
MOV %r6, 6
MOV %r7, 7
MOV %r8, 8
MOV %r9, 9
MOV %r10, 10
MOV %r11, 11
MOV %r12, 12
MOV %r13, 13
MOV %r14, 14
... | begin:
MOV %r0, 1
MOV %r1, 1
MOV %r2, 2
MOV %r3, 3
MOV %r4, 4
MOV %r5, 5
MOV %r6, 6
MOV %r7, 7
MOV %r8, 8
MOV %r9, 9
MOV %r10, 10
MOV %r11, 11
MOV %r12, 12
MOV %r13, 13
MOV %r14, 14
... |
b54f6c9569b35c6f551ea1752f6c67e76a7843ae | Extended test program to show 1 digit decimal counter on screen | Extended test program to show 1 digit decimal counter on screen
| Zardoz89/WaveAsm,Meisaka/WaveAsm,8l/WaveAsm,8l/WaveAsm,Zardoz89/WaveAsm,Meisaka/WaveAsm | test.asm | isc | 1,384,795,959 | begin:
MOV %r0, 1
MOV %r1, 1
MOV %r2, 2
MOV %r3, 3
MOV %r4, 4
MOV %r5, 5
MOV %r6, 6
MOV %r7, 7
MOV %r8, 8
MOV %r9, 9
MOV %r10, 10
MOV %r11, 11
MOV %r12, 12
MOV %r13, 13
MOV %r14, 14
... | begin:
MOV %r0, 1
MOV %r1, 1
MOV %r2, 2
MOV %r3, 3
MOV %r4, 4
MOV %r5, 5
MOV %r6, 6
MOV %r7, 7
MOV %r8, 8
MOV %r9, 9
MOV %r10, 10
MOV %r11, 11
MOV %r12, 12
MOV %r13, 13
MOV %r14, 14
... |
477656102a18915daf6a997faca9a1d3af35adc2 | Updated test program to be more exaustive and stress more the Assembler | Updated test program to be more exaustive and stress more the Assembler
| Zardoz89/WaveAsm,Meisaka/WaveAsm,8l/WaveAsm,Meisaka/WaveAsm,Zardoz89/WaveAsm,8l/WaveAsm | test.asm | isc | 1,384,012,016 | begin:
MOV %r0, 1
MOV %r1, 1
MOV %r2, 2
MOV %r3, 3
MOV %r4, 4
MOV %r5, 5
MOV %r6, 6
MOV %r7, 7
MOV %r8, 8
MOV %r9, 9
MOV %r10, 10
MOV %r11, 11
MOV %r12, 12
MOV %r13, 13
MOV %r14, 14
... | begin:
MOV %r0, 1
MOV %r1, 1
MOV %r2, 2
MOV %r3, 3
MOV %r4, 4
MOV %r5, 5
MOV %r6, 6
MOV %r7, 7
MOV %r8, 8
MOV %r9, 9
MOV %r10, 10
MOV %r11, 11
MOV %r12, 12
MOV %r13, 13
MOV %r14, 14
... |
f98a3f17633bb3b48a79680d38c60a9beb46a25b | Added code to write in CDA text ram | Added code to write in CDA text ram
| 8l/WaveAsm,Meisaka/WaveAsm,8l/WaveAsm,Zardoz89/WaveAsm,Zardoz89/WaveAsm,Meisaka/WaveAsm | test.asm | isc | 1,383,143,862 | begin:
MOV %r0, 1
MOV %r1, 1
MOV %r2, 2
MOV %r3, 3
MOV %r4, 4
MOV %r5, 5
MOV %r6, 6
MOV %r7, 7
MOV %r8, 8
MOV %r9, 9
MOV %r10, 10
MOV %r11, 11
MOV %r12, 12
MOV %r13, 13
MOV %r14, 14
... | begin:
MOV %r0, 1
MOV %r1, 1
MOV %r2, 2
MOV %r3, 3
MOV %r4, 4
MOV %r5, 5
MOV %r6, 6
MOV %r7, 7
MOV %r8, 8
MOV %r9, 9
MOV %r10, 10
MOV %r11, 11
MOV %r12, 12
MOV %r13, 13
MOV %r14, 14
... |
d4c333b50d988e2b5fb39a809ba17e584c4f6988 | Fixed niave exponentation function | Fixed niave exponentation function
| Meisaka/WaveAsm,Zardoz89/WaveAsm,8l/WaveAsm,Meisaka/WaveAsm,Zardoz89/WaveAsm,8l/WaveAsm | test.asm | isc | 1,383,070,290 | begin:
MOV %r0, 1
MOV %r1, 1
MOV %r2, 2
MOV %r3, 3
MOV %r4, 4
MOV %r5, 5
MOV %r6, 6
MOV %r7, 7
MOV %r8, 8
MOV %r9, 9
MOV %r10, 10
MOV %r11, 11
MOV %r12, 12
MOV %r13, 13
MOV %r14, 14
... | begin:
MOV %r0, 1
MOV %r1, 1
MOV %r2, 2
MOV %r3, 3
MOV %r4, 4
MOV %r5, 5
MOV %r6, 6
MOV %r7, 7
MOV %r8, 8
MOV %r9, 9
MOV %r10, 10
MOV %r11, 11
MOV %r12, 12
MOV %r13, 13
MOV %r14, 14
... |
e42a7f68dbba408cf42a603e2e89dbf63f719a74 | Added instruction name to banner comment | Added instruction name to banner comment
| asmblah/jemul8,spthaolt/jemul8,asmblah/jemul8,spthaolt/jemul8,spthaolt/jemul8,asmblah/jemul8 | asm/tests/bdd/acceptance/real-mode/CPU/Instruction/push.asm | mit | 1,380,922,991 | ;
; jemul8 - JavaScript x86 Emulator
; Copyright (c) 2013 http://jemul8.com. All Rights Reserved.
;
; MODULE: Tests for CPU stack handling - x86 PUSH instruction
;
%include '../../tools.inc'
; Jump over data
jmp main
; --- Data ---
; Test descriptions
test1 db "should decrease SP by 2 when an 8-bit value is pushed"... | ;
; jemul8 - JavaScript x86 Emulator
; Copyright (c) 2013 http://jemul8.com. All Rights Reserved.
;
; MODULE: Tests for CPU stack handling
;
%include '../../tools.inc'
; Jump over data
jmp main
; --- Data ---
; Test descriptions
test1 db "should decrease SP by 2 when an 8-bit value is pushed",0
test2 db "should dec... |
3bca19434df01218667fffd8ac5863bb42c99d4f | Update hangman.asm | Update hangman.asm
Removed 3 letter restriction from words by implementing an array of wordSizes, allowing the program to jump to the correct address to find words without worrying about MIPS words. | mlohstroh/mips_examples | hangman.asm | mit | 1,379,875,385 | .text
# Main program starts here
main:
jal loadWords
jal prepForCount
gameSetup:
jal chooseRandomWord
jal printChosenWord
jal gameLoop
gameLoop:
li $v0, 10
syscall
printChosenWord:
li $v0, 4
la $a0, chosenWord
syscall
jr $ra
chooseRandomWord:
#choose a random index
li $v0, 42
#add $t0, $s0, -1... | .text
# Main program starts here
main:
jal loadWords
jal prepForCount
gameSetup:
jal chooseRandomWord
jal printChosenWord
jal gameLoop
gameLoop:
li $v0, 10
syscall
printChosenWord:
li $v0, 4
la $a0, chosenWord
syscall
jr $ra
chooseRandomWord:
#choose a random index
li $v0, 42
move $a1, $s0 #ma... |
7e2718870ca4afdb1017500a6f834b87c2cc3860 | Update hangman.asm | Update hangman.asm
Changed readword() so that it looks for newline character, changed countwords() so that it correctly copies words from buffer to wordAddresses. Only works correctly for words which are 1 MIPS word long (4 bytes = 3 bytes of ASCII and a '\n'), but we're getting there | mlohstroh/mips_examples | hangman.asm | mit | 1,379,807,015 | .text
# Main program starts here
main:
jal loadWords
jal prepForCount
gameSetup:
jal chooseRandomWord
jal printChosenWord
jal gameLoop
gameLoop:
li $v0, 10
syscall
printChosenWord:
li $v0, 4
la $a0, chosenWord
syscall
jr $ra
chooseRandomWord:
#choose a random index
li $v0, 42
move $a1, $s0 #ma... | .text
# Main program starts here
main:
jal loadWords
jal prepForCount
gameSetup:
jal chooseRandomWord
jal printChosenWord
jal gameLoop
gameLoop:
li $v0, 10
syscall
printChosenWord:
li $v0, 4
la $a0, chosenWord
syscall
jr $ra
chooseRandomWord:
#choose a random index
li $v0, 42
move $a1, $s0 #ma... |
35c1075fd35986ca3217d962fca51bdfa65097f3 | Fix undefined reference to memset | Fix undefined reference to memset
| perlun/rustboot,alexchandel/rustboot,perlun/rustboot,alexchandel/rustboot,wbthomason/ironkernel,pczarn/rustboot,pczarn/rustboot,wbthomason/ironkernel | runtime.asm | mit | 1,373,989,581 | use32
global __morestack
global abort
global memcmp
global memcpy
global memset
global malloc
global free
global start
global upcall_call_shim_on_rust_stack
_GLOBAL_OFFSET_TABLE_ equ 0
extern main
start:
; rust functions compare esp against [gs:0x30] as a sort of stack guard thing
; as long as we set [gs:0x... | use32
global __morestack
global abort
global memcmp
global memcpy
global malloc
global free
global start
global upcall_call_shim_on_rust_stack
_GLOBAL_OFFSET_TABLE_ equ 0
extern main
start:
; rust functions compare esp against [gs:0x30] as a sort of stack guard thing
; as long as we set [gs:0x30] to dword 0... |
87dc22bbca7f9ec8b3337c7c52f6695a2a096d1a | Implement upcall_call_shim_on_rust_stack | Implement upcall_call_shim_on_rust_stack
| alexchandel/rustboot,pczarn/rustboot,wbthomason/ironkernel,perlun/rustboot,wbthomason/ironkernel,perlun/rustboot,alexchandel/rustboot,pczarn/rustboot | runtime.asm | mit | 1,373,404,626 | use32
global __morestack
global abort
global memcmp
global memcpy
global malloc
global free
global start
global upcall_call_shim_on_rust_stack
global _GLOBAL_OFFSET_TABLE_
_GLOBAL_OFFSET_TABLE_ equ 0
extern main
start:
; rust functions compare esp against [gs:0x30] as a sort of stack guard thing
; as long a... | use32
global __morestack
global abort
global memcmp
global memcpy
global malloc
global free
global start
global _GLOBAL_OFFSET_TABLE_
_GLOBAL_OFFSET_TABLE_ equ 0
extern main
start:
; rust functions compare esp against [gs:0x30] as a sort of stack guard thing
; as long as we set [gs:0x30] to dword 0, it shou... |
acdebe5146277e14eef32d28755e413a9df837ba | Set global GOT at 0 and merge infinite loops | Set global GOT at 0 and merge infinite loops
| wbthomason/ironkernel,perlun/rustboot,wbthomason/ironkernel,alexchandel/rustboot,alexchandel/rustboot,perlun/rustboot,pczarn/rustboot,pczarn/rustboot | runtime.asm | mit | 1,373,404,604 | use32
global __morestack
global abort
global memcmp
global memcpy
global malloc
global free
global start
global _GLOBAL_OFFSET_TABLE_
_GLOBAL_OFFSET_TABLE_ equ 0
extern main
start:
; rust functions compare esp against [gs:0x30] as a sort of stack guard thing
; as long as we set [gs:0x30] to dword 0, it shou... | use32
global _GLOBAL_OFFSET_TABLE_
global __morestack
global abort
global memcmp
global memcpy
global malloc
global free
global start
extern main
start:
; rust functions compare esp against [gs:0x30] as a sort of stack guard thing
; as long as we set [gs:0x30] to dword 0, it should be ok
mov [gs:0x30], d... |
8ac8ff8f37e57fcab45a45035b9fc5f64368b97f | Initialize ESP to the top of the stack | Initialize ESP to the top of the stack
The stack grows down, so pointing ESP at the low address end of the
stack will overwrite other data rather than using the reserved stack
area.
| Overv/MineAssemble,akasei/MineAssemble,Overv/MineAssemble,akasei/MineAssemble | src/init.asm | mit | 1,371,486,936 | ;
; This file contains all initialization code (VGA mode, interrupt table, etc)
;
[bits 32]
global start
extern init_idt, init_pic, init_input, init_time
extern init_vga
extern show_splash
extern main
extern bss_start, bss_size
start:
; Run initialization code
jmp init
align 4
mboot:
... | ;
; This file contains all initialization code (VGA mode, interrupt table, etc)
;
[bits 32]
global start
extern init_idt, init_pic, init_input, init_time
extern init_vga
extern show_splash
extern main
extern bss_start, bss_size
start:
; Run initialization code
jmp init
align 4
mboot:
... |
e8bbbe67886f28db5600e6e5029cd24a48925e50 | cortex-r4: wrap asm functions with .asmfunc/.endasmfunc | cortex-r4: wrap asm functions with .asmfunc/.endasmfunc
| geniusgogo/rt-thread,geniusgogo/rt-thread,gbcwbz/rt-thread,armink/rt-thread,RT-Thread/rt-thread,weety/rt-thread,weety/rt-thread,zhaojuntao/rt-thread,ArdaFu/rt-thread,weiyuliang/rt-thread,weiyuliang/rt-thread,weety/rt-thread,AubrCool/rt-thread,wolfgangz2013/rt-thread,gbcwbz/rt-thread,armink/rt-thread,ArdaFu/rt-thread,Au... | libcpu/arm/cortex-r4/context_ccs.asm | apache-2.0 | 1,370,445,666 | ;/*
; * File : context_ccs.asm
; * This file is part of RT-Thread RTOS
; * COPYRIGHT (C) 2006, RT-Thread Development Team
; *
; * The license and distribution terms for this file may be
; * found in the file LICENSE in this distribution or at
; * http://www.rt-thread.org/license/LICENSE
; *
; * Change Logs:
; * Da... | ;/*
; * File : context_ccs.asm
; * This file is part of RT-Thread RTOS
; * COPYRIGHT (C) 2006, RT-Thread Development Team
; *
; * The license and distribution terms for this file may be
; * found in the file LICENSE in this distribution or at
; * http://www.rt-thread.org/license/LICENSE
; *
; * Change Logs:
; * Da... |
8bbfd45ce3bd78d01e8c03bd5877825f1bb4d610 | rm48x50: change STMFD/LDMFD to STMDB/LDMIA | rm48x50: change STMFD/LDMFD to STMDB/LDMIA
VFP instructions only have IA(Increment After)/DB(Decrement Before)
mode. To keep consistency, just change STM/LDM to DB/IA accordingly.
| hezlog/rt-thread,weiyuliang/rt-thread,zhaojuntao/rt-thread,geniusgogo/rt-thread,hezlog/rt-thread,FlyLu/rt-thread,AubrCool/rt-thread,armink/rt-thread,armink/rt-thread,AubrCool/rt-thread,geniusgogo/rt-thread,gbcwbz/rt-thread,weiyuliang/rt-thread,yongli3/rt-thread,hezlog/rt-thread,weiyuliang/rt-thread,nongxiaoming/rt-thre... | libcpu/arm/rm48x50/context_ccs.asm | apache-2.0 | 1,369,996,722 | ;/*
; * File : context_ccs.asm
; * This file is part of RT-Thread RTOS
; * COPYRIGHT (C) 2006, RT-Thread Development Team
; *
; * The license and distribution terms for this file may be
; * found in the file LICENSE in this distribution or at
; * http://www.rt-thread.org/license/LICENSE
; *
; * Change Logs:
; * Da... | ;/*
; * File : context_ccs.asm
; * This file is part of RT-Thread RTOS
; * COPYRIGHT (C) 2006, RT-Thread Development Team
; *
; * The license and distribution terms for this file may be
; * found in the file LICENSE in this distribution or at
; * http://www.rt-thread.org/license/LICENSE
; *
; * Change Logs:
; * Da... |
83ea4dd628447bfdf544f4df786fe28a08f7f7d6 | rm48x50: small cleanup on context_ccs.asm | rm48x50: small cleanup on context_ccs.asm
| hezlog/rt-thread,zhaojuntao/rt-thread,weiyuliang/rt-thread,igou/rt-thread,yongli3/rt-thread,gbcwbz/rt-thread,nongxiaoming/rt-thread,nongxiaoming/rt-thread,geniusgogo/rt-thread,zhaojuntao/rt-thread,RT-Thread/rt-thread,weety/rt-thread,weety/rt-thread,weety/rt-thread,zhaojuntao/rt-thread,armink/rt-thread,ArdaFu/rt-thread,... | libcpu/arm/rm48x50/context_ccs.asm | apache-2.0 | 1,369,906,670 | ;/*
; * File : context_ccs.asm
; * This file is part of RT-Thread RTOS
; * COPYRIGHT (C) 2006, RT-Thread Development Team
; *
; * The license and distribution terms for this file may be
; * found in the file LICENSE in this distribution or at
; * http://www.rt-thread.org/license/LICENSE
; *
; * Change Logs:
; * Da... | ;/*
; * File : context_ccs.asm
; * This file is part of RT-Thread RTOS
; * COPYRIGHT (C) 2006, RT-Thread Development Team
; *
; * The license and distribution terms for this file may be
; * found in the file LICENSE in this distribution or at
; * http://www.rt-thread.org/license/LICENSE
; *
; * Change Logs:
; * Da... |
f08df08897135d007715f4c27be41071f9d33b07 | rm48x50: optimize a BEQ | rm48x50: optimize a BEQ
Use condition flag in the ORR. This could eliminate a BEQ.
| weiyuliang/rt-thread,nongxiaoming/rt-thread,geniusgogo/rt-thread,igou/rt-thread,nongxiaoming/rt-thread,RT-Thread/rt-thread,AubrCool/rt-thread,weety/rt-thread,zhaojuntao/rt-thread,igou/rt-thread,ArdaFu/rt-thread,FlyLu/rt-thread,gbcwbz/rt-thread,weiyuliang/rt-thread,armink/rt-thread,yongli3/rt-thread,weiyuliang/rt-thread... | libcpu/arm/rm48x50/context_ccs.asm | apache-2.0 | 1,369,582,676 | ;/*
; * File : context_ccs.asm
; * This file is part of RT-Thread RTOS
; * COPYRIGHT (C) 2006, RT-Thread Development Team
; *
; * The license and distribution terms for this file may be
; * found in the file LICENSE in this distribution or at
; * http://www.rt-thread.org/license/LICENSE
; *
; * Change Logs:
; * Da... | ;/*
; * File : context_ccs.asm
; * This file is part of RT-Thread RTOS
; * COPYRIGHT (C) 2006, RT-Thread Development Team
; *
; * The license and distribution terms for this file may be
; * found in the file LICENSE in this distribution or at
; * http://www.rt-thread.org/license/LICENSE
; *
; * Change Logs:
; * Da... |
19fe6251e7085c39c69945aedde4c00b6167043b | rm48x50: optimize context_switch_interrupt_to by reuse registers | rm48x50: optimize context_switch_interrupt_to by reuse registers
When saving thread registers in context_switch_interrupt_to, we don't
change them, just move them. So there is no need to always r0-r3 from
stack to the real r0-r3. So just use the intermediate registers and
eliminate 2 MOV.
| wolfgangz2013/rt-thread,zhaojuntao/rt-thread,nongxiaoming/rt-thread,gbcwbz/rt-thread,weiyuliang/rt-thread,igou/rt-thread,weiyuliang/rt-thread,RT-Thread/rt-thread,AubrCool/rt-thread,FlyLu/rt-thread,hezlog/rt-thread,armink/rt-thread,RT-Thread/rt-thread,hezlog/rt-thread,gbcwbz/rt-thread,zhaojuntao/rt-thread,RT-Thread/rt-t... | libcpu/arm/rm48x50/context_ccs.asm | apache-2.0 | 1,369,579,069 | ;/*
; * File : context_ccs.asm
; * This file is part of RT-Thread RTOS
; * COPYRIGHT (C) 2006, RT-Thread Development Team
; *
; * The license and distribution terms for this file may be
; * found in the file LICENSE in this distribution or at
; * http://www.rt-thread.org/license/LICENSE
; *
; * Change Logs:
; * Da... | ;/*
; * File : context_ccs.asm
; * This file is part of RT-Thread RTOS
; * COPYRIGHT (C) 2006, RT-Thread Development Team
; *
; * The license and distribution terms for this file may be
; * found in the file LICENSE in this distribution or at
; * http://www.rt-thread.org/license/LICENSE
; *
; * Change Logs:
; * Da... |
435f305fa2d7e189c5251ae050f811eda562be14 | rm48x50: temperately disable the VFP register test | rm48x50: temperately disable the VFP register test
| gbcwbz/rt-thread,wolfgangz2013/rt-thread,AubrCool/rt-thread,gbcwbz/rt-thread,armink/rt-thread,weety/rt-thread,FlyLu/rt-thread,nongxiaoming/rt-thread,yongli3/rt-thread,yongli3/rt-thread,zhaojuntao/rt-thread,ArdaFu/rt-thread,AubrCool/rt-thread,igou/rt-thread,RT-Thread/rt-thread,AubrCool/rt-thread,wolfgangz2013/rt-thread,... | bsp/rm48x50/application/reg_test.asm | apache-2.0 | 1,369,577,726 | ;/*
; FreeRTOS V7.4.2 - Copyright (C) 2013 Real Time Engineers Ltd.
;
;
; ***************************************************************************
; * *
; * FreeRTOS tutorial books are available in pdf and paperback. *
; ... | ;/*
; FreeRTOS V7.4.2 - Copyright (C) 2013 Real Time Engineers Ltd.
;
;
; ***************************************************************************
; * *
; * FreeRTOS tutorial books are available in pdf and paperback. *
; ... |
2805d315bd4c3800f7d72f7e77a2538ab4c4ba6b | rm48x50: fix bug in reg_test from FreeRTOS | rm48x50: fix bug in reg_test from FreeRTOS
It does not satisfy AAPCS.
| ArdaFu/rt-thread,weiyuliang/rt-thread,AubrCool/rt-thread,hezlog/rt-thread,geniusgogo/rt-thread,geniusgogo/rt-thread,yongli3/rt-thread,RT-Thread/rt-thread,weety/rt-thread,ArdaFu/rt-thread,igou/rt-thread,weety/rt-thread,igou/rt-thread,igou/rt-thread,nongxiaoming/rt-thread,wolfgangz2013/rt-thread,ArdaFu/rt-thread,gbcwbz/r... | bsp/rm48x50/application/reg_test.asm | apache-2.0 | 1,369,576,166 | ;/*
; FreeRTOS V7.4.2 - Copyright (C) 2013 Real Time Engineers Ltd.
;
;
; ***************************************************************************
; * *
; * FreeRTOS tutorial books are available in pdf and paperback. *
; ... | ;/*
; FreeRTOS V7.4.2 - Copyright (C) 2013 Real Time Engineers Ltd.
;
;
; ***************************************************************************
; * *
; * FreeRTOS tutorial books are available in pdf and paperback. *
; ... |
3d0647efb3980238c2a1c511f24b45f430f1d2e4 | rm48x50: optimize context_switch_interrupt_do | rm48x50: optimize context_switch_interrupt_do
Substitude STMFD, MOV, ADD with STMFD, SUB. It reduce one instruction.
Tested on board and it works like a charm.
| weety/rt-thread,geniusgogo/rt-thread,weiyuliang/rt-thread,hezlog/rt-thread,igou/rt-thread,AubrCool/rt-thread,ArdaFu/rt-thread,nongxiaoming/rt-thread,AubrCool/rt-thread,geniusgogo/rt-thread,wolfgangz2013/rt-thread,weety/rt-thread,FlyLu/rt-thread,igou/rt-thread,ArdaFu/rt-thread,gbcwbz/rt-thread,RT-Thread/rt-thread,RT-Thr... | libcpu/arm/rm48x50/context_ccs.asm | apache-2.0 | 1,369,560,156 | ;/*
; * File : context_ccs.asm
; * This file is part of RT-Thread RTOS
; * COPYRIGHT (C) 2006, RT-Thread Development Team
; *
; * The license and distribution terms for this file may be
; * found in the file LICENSE in this distribution or at
; * http://www.rt-thread.org/license/LICENSE
; *
; * Change Logs:
; * Da... | ;/*
; * File : context_ccs.asm
; * This file is part of RT-Thread RTOS
; * COPYRIGHT (C) 2006, RT-Thread Development Team
; *
; * The license and distribution terms for this file may be
; * found in the file LICENSE in this distribution or at
; * http://www.rt-thread.org/license/LICENSE
; *
; * Change Logs:
; * Da... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.