Muphet's Profile User Rating: -----

Reputation: 0 Apprentice
Group:
Members
Active Posts:
18 (0.02 per day)
Joined:
01-May 12
Profile Views:
1,495
Last Active:
User is offline Apr 20 2013 04:35 AM
Currently:
Offline

Previous Fields

Dream Kudos:
0
Icon   Muphet has not set their status

Posts I've Made

  1. In Topic: [php/jq] Live search problem

    Posted 20 Apr 2013

    oh wow, it actually works. Thanks mate, I really appreciate this
  2. In Topic: display navigation menu

    Posted 27 Dec 2012

    @trichardson
    i posted exact error genius.
    "Warning: Invalid argument supplied for foreach() in E:\tools\WebServ\httpd\core.php on line 33"
    which is "foreach($type as $key => $value)"

    @dormilich
    I wanted to display key within value of different array, thats why I used $type[$key].

    @no2pencil
    error in this line: foreach($type as $key => $value){ //Invalid argument supplied for foreach()
  3. In Topic: Write data into text file

    Posted 10 Dec 2012

    So for now, program works exactly as I wanted but theres is small thing that i want to know. Writing bits to the file. Dunno why it's required but it actually is. I found, that writing data to file is moving byte number to CX register. It's working for 1 byte, but when I try to write more (for example same two digit number), it saves only one number and one ascii code. This works with every next byte. Problem is also in writing. It causes to save only the last character instead from left to right.
    This is my code, writing to file is located at the end.
    .model small
    .stack 200H
    .data
       msg1 DB 10,13,'Enter the first no: $'
       msg2 DB 10,13,'Enter the second no: $'
       msg3 DB 10,13,'sum = $'
       newline DB 10,13, ' $'
       file DB 'results.txt',00
       sum DW ?
    .code
       print MACRO msg ;macro definition
       PUSH AX
       PUSH DX
       MOV AH,09H
       MOV DX,offset msg
       INT 21H
       POP DX
       POP AX
       ENDM
    .startup
       print msg1
       CALL readnumtoAX
       MOV CX,AX
       print newline
       print msg2
       CALL readnumtoAX
       print newline
       print msg3
       ADD ax,cX
       CALL displayAX
       CALL saveAX
    .exit
    readnumtoAX PROC NEAR
       PUSH BX
       PUSH CX
       MOV CX,10
       MOV BX,00
    back:
       MOV AH,01H
       INT 21H
       CMP AL,'0'
       JB skip
       CMP AL,'9'
       JA skip
       SUB AL,'0'
       PUSH AX
       MOV AX,BX
       MUL CX
       MOV BX,AX
       POP AX
       MOV AH,00
       ADD BX,AX
       JMP back
    skip:
       MOV AX,BX
       POP CX
       POP BX
       RET
    readnumtoAX ENDP
    displayAX PROC NEAR
       PUSH DX
       PUSH CX
       PUSH BX
       PUSH AX
       MOV CX,0
       MOV BX,10
    back1:
       MOV DX,0
       DIV BX
       PUSH DX
       INC CX
       OR AX,AX
       JNZ back1
    back2:
       POP DX
       ADD DL,30H
       MOV AH,02H
       INT 21H
       	MOV sum,ax
       LOOP back2
       POP AX
       POP BX
       POP CX
       POP DX
    	RET
      displayAX ENDP
      saveAX PROC NEAR
    	MOV AH,3CH
    	MOV CX,0
    	LEA DX,file
    	INT 21H
    	MOV BX,AX
    	MOV AH,40H
    	MOV DX,offset sum
    	MOV CX,1
    	INT 21H
    	MOV AH,04CH
    	INT 21H
      saveAX ENDP
    end
    


    How to write more bytes to file which depends on addition result?
    (for those who don't know what's going on, this is simple program to sum two user input digits and then save result to txt file)
  4. In Topic: Clean URL processing

    Posted 10 Aug 2012

    oh well, i want to include files into existing index to avoid cloning website. I can do it simpy creating variables but i want to implement clean urls. index get requestes from url processor and shows something. why it's looking for style when it shouldn't?

    i.e. iframes don't need to change entire page to display some info. I just want to did same but in div using php.

My Information

Member Title:
New D.I.C Head
Age:
Age Unknown
Birthday:
Birthday Unknown
Gender:

Contact Information

E-mail:
Private

Friends

Muphet hasn't added any friends yet.

Comments

Muphet has no profile comments yet. Why not say hello?