# HG changeset patch # User boisy # Date 1042903516 0 # Node ID bf7af3b0e781b9f2bfdfec5b5931b000b5cf06a3 # Parent bffd011cbef3c5b438d54ee0f5d60d20cd017198 More comments diff -r bffd011cbef3 -r bf7af3b0e781 level1/cmds/login.asm --- a/level1/cmds/login.asm Sat Jan 18 14:53:34 2003 +0000 +++ b/level1/cmds/login.asm Sat Jan 18 15:25:16 2003 +0000 @@ -34,12 +34,12 @@ DefUID rmb 1 u0005 rmb 1 u0006 rmb 2 -u0008 rmb 2 -u000A rmb 2 +rdbufptr rmb 2 +buffnext rmb 2 u000C rmb 1 -u000D rmb 256 -u010D rmb 128 -u018D rmb 80 +timebuff rmb 256 +linebuff rmb 128 +readbuff rmb 80 u01DD rmb 80 u022D rmb 32 size equ . @@ -50,7 +50,6 @@ PassFile fcc "SYS/PASSWORD" fcb C$CR - fcc ",,,,,,,,,,,,,,," WideMsg fcb C$LF,C$LF IFNE NitrOS9 fcc "Nitr" @@ -134,7 +133,7 @@ IcptRtn rti note, was rts in original code -start leas >u010D,u +start leas >linebuff,u pshs y,x leax u01DD,u - sty u018D,u - sty readbuff,u + sty PassFile,pcr os9 I$Open - lbcs L02F4 + lbcs Exit sta Sorry,pcr lbmi L031F - leax >u018D,u - stx readbuff,u + stx UName,pcr ldy #UNameLen lbsr L0347 @@ -206,13 +205,13 @@ bra L01EC L0217 lbsr L03B9 bcc L0253 - ldx Pass,pcr ldy #PassLen @@ -221,8 +220,8 @@ bcs L020E lbsr L03B9 bcc L0253 -L0242 leax >u018D,u - stx readbuff,u + stx nvPass,pcr @@ -294,7 +293,7 @@ ldd #256 os9 F$Chain os9 F$PErr -L02F4 os9 F$Exit +Exit os9 F$Exit L02F7 ldx u010D,u + leax >linebuff,u ldy #128 os9 I$ReadLn bcs L03B8 @@ -382,7 +381,7 @@ stx u018D,u + leax >readbuff,u ldy #80 os9 I$ReadLn bcc L03ED @@ -454,10 +453,10 @@ lbne L031B sta ,s L0452 puls pc,y,x,b,a -L0454 leax u000D,u - os9 F$Time +L0454 leax timebuff,u + os9 F$Time get current time bsr Y2K - bsr L0498 + bsr SpcInBuf bsr L0461 bra L04A4 L0461 bsr L0471 @@ -474,64 +473,49 @@ GotCntry addb #100 stb ,x tfr a,b - -* ldb ,x -* cmpb #100 -* blo L1900 -* subb #100 -* cmpb #100 -* blo L2000 -*L2100 subb #100 -* stb ,x -* ldb #21 -* bra PrCnty -*L1900 stb ,x -* ldb #19 -* bra PrCnty -*L2000 stb ,x -* ldb #20 - -PrCnty bsr Slash +PrCnty bsr Byt2ASC L0469 bsr L0471 - bsr L046D -L046D lda #'/ -L046F bsr L049A + bsr Slash +Slash lda #'/ +L046F bsr AinBuf add slash to buffer L0471 ldb ,x+ -Slash lda #'/ +Byt2ASC lda #$2F clr u01DD,u - ldd