ASTRA-256 Assembler

ASTRA-256 Assembler

评价数不足
KEYBOARD COLOR SHOW
   
奖励
收藏
已收藏
取消收藏
文件大小
发表于
更新日期
1.022 KB
2021 年 2 月 8 日 下午 12:55
2021 年 2 月 8 日 下午 6:30
2 项改动说明 ( 查看 )

订阅以下载
KEYBOARD COLOR SHOW

描述
UTILIZES KEY COLOR MANAGEMENT TO CYCLE THE
KEYS IN SEQUENCE FROM LEFT TO RIGHT, TOP TO
BOTTOM, THROUGH EACH OF THE 3 COLORS AND THEN
OFF AGAIN

- PRESS RUN TO START -

Program list:

INITSP ; initialize stack pointer
MOVLR 90 E0 ; set E0h address to 90h for loop countdown
MOVLR 40 E1 ; set E1h address to 40h for start of data set for keys/colors
OUTCLRKBD ; reset all key colors to off
SPEED 00 ; resume full cpu speed
CALL 13 ; go to subroutine starting at address 13h
INCR E1 ; increment reference address for key/color value
LOOP E0 0A ; loop back to address 0Ah decrimenting value of E0h each time until it reaches zero
JMP 00 ; jump to beginning of program after LOOP instruction finishes
MOVIRA E1 ; move current value of E1h into accumulator
OUTKBD ; set keyboard LED key and color as determined by value in accumulator
SPEED 02 ; set CPU speed
RETURN ; end of subroutine

key/color data set (spacebar not included): { 47, 46, 45, 44, 43, 42, 41, 40, 48, 49, 4A, 4B, 4C, 4D, 4E, 4F, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 5A, 5B, 5C, 5D, 5E, 5F, 60, 61, 62, 63, 87, 86, 85, 84, 83, 82, 81, 80, 88, 89, 8A, 8B, 8C, 8D, 8E, 8F, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 9A, 9B, 9C, 9D, 9E, 9F, A0, A1, A2, A3, C7, C6, C5, C4, C3, C2, C1, C0, C8, C9, CA, CB, CC, CD, CE, CF, D0, D1, D2, D3, D4, D5, D6, D7, D8, D9, DA, DB, DC, DD, DE, DF, E0, E1, E2, E3, 07, 06, 05, 04, 03, 02, 01, 00, 08, 09, 0A, 0B, 0C, 0D, 0E, 0F, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 1A, 1B, 1C, 1D, 1E, 1F, 20, 21, 22, 23 }

THIS IS A RUDIMENTARY PROGRAM. MATH FUNCTIONS CAN BE USED FOR MORE EFFICIENT USAGE OF MEMORY.
1 条留言
Son of CYLON 2021 年 10 月 10 日 下午 9:23 
Hello Sovereign
My only question is !
Is it the " real assembly coding " or is it a fake one that resembles it as for a game ??
Just wanted to know if it will actually bring me some real learning about ASSEMBLY or not ?