Learning Space http://sulavpaudel.com.np/ Study materials Mon, 25 Dec 2023 12:25:13 +0000 en-US hourly 1 https://wordpress.org/?v=6.1.6 https://i0.wp.com/sulavpaudel.com.np/wp-content/uploads/2018/01/cropped-sulavp-1.png?fit=32%2C32&ssl=1 Learning Space http://sulavpaudel.com.np/ 32 32 142032174 JDBC https://sulavpaudel.com.np/uncategorized/jdbc/ Mon, 25 Dec 2023 12:25:11 +0000 https://sulavpaudel.com.np/?p=3736 The post JDBC appeared first on Learning Space.

]]>

The post JDBC appeared first on Learning Space.

]]>
3736
test-2 https://sulavpaudel.com.np/uncategorized/test-2/ Sun, 26 Mar 2023 12:34:05 +0000 http://sulavpaudel.com.np/?p=3667 Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat […]

The post test-2 appeared first on Learning Space.

]]>
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

The post test-2 appeared first on Learning Space.

]]>
3667
test post https://sulavpaudel.com.np/uncategorized/test-post/ Sun, 26 Mar 2023 12:02:15 +0000 http://sulavpaudel.com.np/?p=3665 Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat […]

The post test post appeared first on Learning Space.

]]>
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

The post test post appeared first on Learning Space.

]]>
3665
JAVA: JSF Hibernate Implementation https://sulavpaudel.com.np/blog/java-jsf-hibernate-implementation/ https://sulavpaudel.com.np/blog/java-jsf-hibernate-implementation/#respond Mon, 06 Mar 2023 13:24:47 +0000 http://sulavpaudel.com.np/?p=533 Introduction We will have the following components in our database application: Student.java – A JSF managed bean class. DatabaseOperation.java – This class is used to perform the Db related operations using hibernate framework. HibernateUtil.java – This class helps in creating the SessionFactory object from the hibernate configuration file. Student.hbm.xml – A mapping file for the persistent or the POJO class. hibernate.cfg.xml – […]

The post JAVA: JSF Hibernate Implementation appeared first on Learning Space.

]]>
  • Introduction
  • We will have the following components in our database application:

    • Student.java – A JSF managed bean class.
    • DatabaseOperation.java – This class is used to perform the Db related operations using hibernate framework.
    • HibernateUtil.java – This class helps in creating the SessionFactory object from the hibernate configuration file.
    • Student.hbm.xml – A mapping file for the persistent or the POJO class.
    • hibernate.cfg.xml – Hibernate configuration file containing database related information.
    • hibernate.reveng.xml – A mapping file to specify the type of mappings and table filtering.

    1.1 Hibernate

     

    The post JAVA: JSF Hibernate Implementation appeared first on Learning Space.

    ]]>
    https://sulavpaudel.com.np/blog/java-jsf-hibernate-implementation/feed/ 0 533
    News and articles https://sulavpaudel.com.np/news-articles/news-and-articles/ Sat, 04 Mar 2023 12:04:04 +0000 https://sulavpaudel.com.np/?p=1351 Lorem ipsum dolor sit amet consectetur adipisicing elit. Maxime mollitia, molestiae quas vel sint commodi repudiandae consequuntur voluptatum laborum numquam blanditiis harum quisquam eius sed odit fugiat iusto fuga praesentium optio, eaque rerum! Provident similique accusantium nemo autem. Veritatis obcaecati tenetur iure eius earum ut molestias architecto voluptate aliquam nihil, eveniet aliquid culpa officia aut! […]

    The post News and articles appeared first on Learning Space.

    ]]>
    Lorem ipsum dolor sit amet consectetur adipisicing elit. Maxime mollitia, molestiae quas vel sint commodi repudiandae consequuntur voluptatum laborum numquam blanditiis harum quisquam eius sed odit fugiat iusto fuga praesentium optio, eaque rerum! Provident similique accusantium nemo autem. Veritatis obcaecati tenetur iure eius earum ut molestias architecto voluptate aliquam nihil, eveniet aliquid culpa officia aut! Impedit sit sunt quaerat, odit, tenetur error, harum nesciunt ipsum debitis quas aliquid. Reprehenderit, quia. Quo neque error repudiandae fuga? Ipsa laudantium molestias eos sapiente officiis modi at sunt excepturi expedita sint? Sed quibusdam recusandae alias error harum maxime adipisci amet laborum. Perspiciatis minima nesciunt dolorem! Officiis iure rerum voluptates a cumque velit

    The post News and articles appeared first on Learning Space.

    ]]>
    1351
    8086 Microprocessor https://sulavpaudel.com.np/microprocessor/instruction-set-of-8086/8086-microprocessor/ Tue, 07 Jun 2022 16:30:32 +0000 http://sulavpaudel.com.np/?p=772 The post 8086 Microprocessor appeared first on Learning Space.

    ]]>
    Loader Loading…
    EAD Logo Taking too long?

    Reload Reload document
    | Open Open in new tab

    The post 8086 Microprocessor appeared first on Learning Space.

    ]]>
    772
    8085 Instruction Sets https://sulavpaudel.com.np/microprocessor/8085-instruction-sets/ Thu, 01 Oct 2020 15:47:27 +0000 http://sulavpaudel.com.np/?p=697 The complete set of instructions that a particular computer can interpret and execute is known as Instruction Set. It is classified into five functional categories: Data Transfer Instructions Arithmetic Instructions Logical Instructions Branching Instructions Machine-Control Instructions 1. Data Transfer Instructions These instructions move data between registers, or between memory and registers. These instructions copy data […]

    The post 8085 Instruction Sets appeared first on Learning Space.

    ]]>
    The complete set of instructions that a particular computer can interpret and execute is known as Instruction Set.

    It is classified into five functional categories:

    • Data Transfer Instructions
    • Arithmetic Instructions
    • Logical Instructions
    • Branching Instructions
    • Machine-Control Instructions

    1. Data Transfer Instructions

    • These instructions move data between registers, or between memory and registers.
    • These instructions copy data from source to destination (without changing the original data).

    MOV [Copy from source to destination]

    • The instruction copies the contents of the source register into the destination register.
    • The contents of the source register are not altered.
    • If one of the operands is a memory location, its location is specified by the content of the HL registers.

    MVI [Move Immediate 8-bit]

    • The 8-bit data is stored in the destination register or memory
    • If the operand is a memory location, its location is specified by the contents of the HL registers
    • Example: MVI B, 40H  or MVI M, 40H

    LXI [Load Register Pair Immediate]

    • The 16-bit data in the operand is loaded in the register pair immediately.
    • Example: LXI H, D020H

    LDA [Load Accumulator Direct]

    • The content of a memory location, specified by a 16-bit address in the operand, is copied to the accumulator.
    • The contents of the source are not altered.
    • Example: LDA 8000H

    LDAX [Load Accumulator Indirect]

    • The content of a memory location, pointed by a register pair in the operand, is copied to the accumulator.
    • The contents of the register pair or the memory location are not altered.
    • Example: LDAX D

    STA [Store Accumulator Direct]

    • The content of the accumulator is copied into the memory location specified by the 16-bit address in the operand.
    • The content of the source is not altered.
    • Example: STA 8000H

    STAX [Store Accumulator Indirect]

    • The content of the accumulator is copied into the memory location, pointed by a register pair in the operand.
    • The contents of the register pair or the memory location are not altered.
    • Example: STAX D

    LHLD [Load H-L Pair Direct]

    • The content of the memory location specified by the 16-bit address in the operand is copied into register L and the content of the next memory location into register H.
    • Example: LHLD 8000H

    SHLD [Store H-L Pair Direct]

    • The content of the register L is copied into the memory location specified by the 16-bit address in the operand and the content of the register H is copied to the next memory location.
    • Example: SHLD 8000H

    XCHG [Exchange the contents]

    • The content of the register H is exchanged with the content of register D, and the contents of register L are exchanged with the contents of register E.
    • Example: XCHG

    The post 8085 Instruction Sets appeared first on Learning Space.

    ]]>
    697
    8085 Microprocessor- Addressing Mode of 8085 MP https://sulavpaudel.com.np/microprocessor/8085-microprocessor-addressing-mode-of-8085-mp/ Thu, 01 Oct 2020 15:26:24 +0000 http://sulavpaudel.com.np/?p=680 The way of specifying data in instruction is known as addressing modes. In assembly language statements, the addressing mode is indicated in the instruction itself. Types of Addressing Modes Direct Addressing Immediate Addressing Register Addressing Indirect Addressing Implied Addressing. Direct Addressing Mode In this mode, the data to be operated is available in the memory […]

    The post 8085 Microprocessor- Addressing Mode of 8085 MP appeared first on Learning Space.

    ]]>
    The way of specifying data in instruction is known as addressing modes. In assembly language statements, the addressing mode is indicated in the instruction itself.

    Types of Addressing Modes

    • Direct Addressing
    • Immediate Addressing
    • Register Addressing
    • Indirect Addressing
    • Implied Addressing.

    Direct Addressing Mode

    In this mode, the data to be operated is available in the memory location and the address of that data is in the instruction itself.

    1st Byte2nd Byte3rd Byte
    OpcodeLower-Order of AddressHigher-Order of Address

    Example: Data is directly copied from the given address to the register.

    • IN 00 H
    • LDA 8000 H
    • STA 9020 H
    Fig: LDA 8000H

    Register Addressing Mode

    In this mode, the data to be operated is available inside the register(s). The register(s) are operands.

    1 Byte
    OpcodeSource RegisterDestination Register

    Example: Data is directly copied from one register to another register.

    • MOV B, A
    • ADD C
    • SUB B
    • PCHL
    Fig: MOV B, A

    Register Indirect Addressing Mode

    In this mode, the address of the operand located in the memory is specified by a register pair.

    1 Byte
    Opcode

    Example: Data is transferred between a register and a memory location address

    • MOV B, M
    • LDAX B
    • SUB M
    Fig: MOV B, M

    Immediate Addressing

    In this mode, the operand is specified within the instruction itself. Immediate data is transferred directly to the register.

    Example

    MVI A, 05 H
    LXI H, 8050 H
    ADI 44 H

    Implicit Addressing

    If the address of the source of data as well as the address of the destination of the result is fixed, then there is no need to give any operand along with the instruction. In this mode, the data is specified by the opcode itself.

    Example: RAR, CMA, DAA, STC, RAL, …

    The post 8085 Microprocessor- Addressing Mode of 8085 MP appeared first on Learning Space.

    ]]>
    680
    8085 Microprocessor – Assembly Language Programming (Part II) https://sulavpaudel.com.np/microprocessor/8085-microprocessor-assembly-language-programming-part-ii/ Thu, 01 Oct 2020 15:00:00 +0000 http://sulavpaudel.com.np/?p=670 Instruction Formats An instruction is a binary pattern designed inside an MP to perform a specific function. Each instruction has two parts: The task to be performed called the operation code (opcode). Data to be operated on, called the operand. Instruction Formats Types The instruction format is divided into three types: One Byte Instruction Two […]

    The post 8085 Microprocessor – Assembly Language Programming (Part II) appeared first on Learning Space.

    ]]>
    Instruction Formats

    An instruction is a binary pattern designed inside an MP to perform a specific function.

    Each instruction has two parts:

    • The task to be performed called the operation code (opcode).
    • Data to be operated on, called the operand.

    Instruction Formats Types

    The instruction format is divided into three types:

    • One Byte Instruction
    • Two Byte Instruction
    • Three Byte Instruction

    One Byte Instruction

    • Includes the opcode and operand in the same byte
    • Operand(s) are internal register and are coded into the instruction.
    • Requires one memory location.

    Example of One Byte Instruction

    InstructionOpcodeOperandHEX CodeTask
    MOV C, AMOVC, A4F HCopy the content of the accumulator in register C
    ADD BADDB80 HAdd the contents of registers B to the contents of the accumulator
    CMACMA2F HInvert (compliment) each bit in the accumulator

    Two Byte Instruction

    • The first byte specifies the opcode and the second byte specifies the operand.
    • The source operand is a data byte immediately following the opcode.
    • The instruction would require two memory locations to store in memory.

    Example of Two Byte Instruction

    InstructionOpcodeOperandHEX CodeTask
    MVI A, DATAMVIA, DATA3EFirst ByteLoad an 8-bit data byte in the accumulator
    DATASecond Byte

    Three Byte Instruction

    • The first byte specifies the opcode, and the following two bytes specify the 16-bit address.
    • The instruction would require three memory locations to store in memory.
    • NOTE: The second byte is the low-order address & the third byte is the higher-order address.
    • Opcode + Data Byte (LO) + Data Byte (HO)

    Example of Three Byte Instruction

    InstructionOpcodeOperandHEX CodeTask
    JMP 2000 HJMP2000 HC3First ByteTransfer the program sequence to the memory location 2000 H.
    00Second Byte
    20Third Byte
    LDA D000 HLDADOOO H3AFirst ByteLoad Accumulator with the contents from memory specify with address
    00Second Byte
    D0Third Byte

    The post 8085 Microprocessor – Assembly Language Programming (Part II) appeared first on Learning Space.

    ]]>
    670
    8085 Microprocessor (Part I) https://sulavpaudel.com.np/microprocessor/8085-microprocessor-part-ii/ Thu, 01 Oct 2020 14:57:23 +0000 http://sulavpaudel.com.np/?p=665 Internal Architecture of 8085 The internal architecture of 8-bit microprocessor 8085 is divided into the following groups Arithmetic & Logical Group Register Group Interrupt Control Group Serial I/O Group Instruction Register, Decoder, Timing, and Control Group Arithmetic & Logical Group Perform arithmetic & logical operations Consists of Accumulator Temporary Registers Status and Flag Register, and […]

    The post 8085 Microprocessor (Part I) appeared first on Learning Space.

    ]]>
    Fig: Architecture of 8085 Microprocessor

    Internal Architecture of 8085

    The internal architecture of 8-bit microprocessor 8085 is divided into the following groups

    • Arithmetic & Logical Group
    • Register Group
    • Interrupt Control Group
    • Serial I/O Group
    • Instruction Register, Decoder, Timing, and Control Group

    Arithmetic & Logical Group

    Perform arithmetic & logical operations

    Consists of

    • Accumulator
    • Temporary Registers
    • Status and Flag Register, and
    • ALU

    Register Group

    Store data and address in this register group

    Consists of 3 types of registers

    • Temporary Registers
    • General Purpose Registers
    • Special Purpose Registers

    Special Purpose Registers

    • Program Counter (PC)
    • Stack Pointer (SP)
    • Increment/Decrement Register

    Interrupt Control

    Accepts different interrupt request inputs such as

    • TRAP
    • RST 7.5
    • RST 6.5
    • RST 5.5
    • INTR

    When a valid interrupt request is present, it informs control logic to take action in response to each signal.

    The post 8085 Microprocessor (Part I) appeared first on Learning Space.

    ]]>
    665