?login_element?

Subversion Repositories NedoOS

Rev

Rev 1989 | Blame | Compare with Previous | Last modification | View Log | Download

  1.     device      zxspectrum128
  2.     IFDEF NEDOOS
  3.         DEFINE CRLF "\r\n"
  4.         MODULE nos
  5.             include "../_sdk/sysdefs.asm"
  6.         ENDMODULE
  7.         org nos.PROGSTART
  8.         ELSE
  9.         DEFINE CRLF "\r"
  10.         org 24576
  11.     ENDIF
  12. asmOrg:
  13.     align 256
  14.     jp start
  15.     include "vdp/index.asm"
  16.     include "utils/index.asm"
  17.     include "gopher/render/index.asm"
  18.     include "dos/index.asm"
  19.     include "gopher/engine/history/index.asm"
  20.     include "gopher/engine/urlencoder.asm"
  21.     include "gopher/engine/fetcher.asm"
  22.     include "gopher/engine/media-processor.asm"
  23.     include "gopher/gopher.asm"
  24.     include "drivers/index.asm"
  25.     include "screen/rtc.asm"
  26.  
  27.     IFDEF NEDOOS
  28.     ;Gap about 8kb, CMD_SETMUSIC 0x4000 mandatory
  29.     ;Stack down from 0x4000
  30.         include "screen/nedoscreen.asm"
  31.         include "player/mod-processor.asm"
  32.         include "player/vortexnedoos.asm"
  33.  
  34. start:
  35. outputBuffer:
  36.         ld sp, 0x4000
  37.         ld c,nos.CMD_SETSYSDRV
  38.         ex af,af'  
  39.             call nos.BDOS
  40.         ELSE
  41.        include "player/mod-processor.asm"
  42.        include "screen/screen.asm"
  43.        include "player/vortex-processor.asm"
  44.  
  45. start:
  46. outputBuffer:
  47.        di
  48.        xor a : ld (#5c6a), a  ; Thank you, Mario Prato, for feedback
  49.        ld (#5c00),a
  50.        ld sp, asmOrg
  51.        call Memory.init
  52.        xor a : out (#fe),a
  53.        ei
  54.    
  55.        ld a, 7 : call Memory.setPage
  56.        ;; Logo
  57.        ld hl, logo, b, Dos.FMODE_READ : call Dos.fopen
  58.        push af
  59.        ld hl, #c000, bc, 6912 : call Dos.fread
  60.        pop af
  61.        call Dos.fclose
  62.  
  63.        ld b, 50
  64. 1       halt
  65.        djnz 1b
  66.    ENDIF
  67.  
  68.    call TextMode.init
  69.         ld hl, initing : call TextMode.printZ
  70.    
  71.    IFNDEF NOINIT
  72.             call Wifi.init
  73.    ENDIF
  74.    
  75.    jp History.home
  76.  
  77. initing db "Initing Wifi...", CRLF, 0
  78. logo    db "browser/logo.scr", 0
  79. creds   db "browser/auth.pwd", 0
  80. outputBuffer2:
  81.    db  "ATE0", 0
  82.    display "ENDS: ", $
  83.    display "Buff size", #ffff - $
  84.  
  85.         IFDEF TRDOS
  86.                 SAVETRD "TRD/MRF.TRD",|BINNAME,asmOrg, $ - asmOrg
  87.                 ELSE
  88.                             savebin BINNAME, asmOrg, $ - asmOrg
  89.         ENDIF        
  90.  
  91.